Deploy with picohost

This commit is contained in:
Alex Gleason committed 2025-09-07 17:58:19 -05:00
1 parent fd9aa5b683
commit 26635a4b6a
10 files changed
+367 -59

No files matched your search

+3 -2
View File
@@ -17,6 +17,7 @@ interface AppProviderProps {
const AppConfigSchema: z.ZodType<AppConfig, z.ZodTypeDef, unknown> = z.object({
theme: z.enum(['dark', 'light', 'system']),
relayUrl: z.string().url(),
deployServer: z.string().min(1),
});
export function AppProvider(props: AppProviderProps) {
@@ -88,11 +89,11 @@ function useApplyTheme(theme: Theme) {
if (theme !== 'system') return;
const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
const handleChange = () => {
const root = window.document.documentElement;
root.classList.remove('light', 'dark');
const systemTheme = mediaQuery.matches ? 'dark' : 'light';
root.classList.add(systemTheme);
};