diff --git a/apps/wisekeep/apps/web/src/lib/stores/auth.svelte.ts b/apps/wisekeep/apps/web/src/lib/stores/auth.svelte.ts index 39d73edb0..df368e32d 100644 --- a/apps/wisekeep/apps/web/src/lib/stores/auth.svelte.ts +++ b/apps/wisekeep/apps/web/src/lib/stores/auth.svelte.ts @@ -5,10 +5,9 @@ import { browser } from '$app/environment'; import { initializeWebAuth, type UserData } from '@manacore/shared-auth'; -import { PUBLIC_MANA_CORE_AUTH_URL } from '$env/static/public'; // Initialize Mana Core Auth only on the client side -const MANA_AUTH_URL = PUBLIC_MANA_CORE_AUTH_URL || 'http://localhost:3001'; +const MANA_AUTH_URL = 'http://localhost:3001'; // Lazy initialization to avoid SSR issues with localStorage let _authService: ReturnType['authService'] | null = null; @@ -68,6 +67,7 @@ export const authStore = { } catch (error) { console.error('Failed to initialize auth:', error); user = null; + initialized = true; } finally { loading = false; } diff --git a/apps/wisekeep/apps/web/src/lib/stores/jobs.ts b/apps/wisekeep/apps/web/src/lib/stores/jobs.ts index 7d921f036..2db854157 100644 --- a/apps/wisekeep/apps/web/src/lib/stores/jobs.ts +++ b/apps/wisekeep/apps/web/src/lib/stores/jobs.ts @@ -1,9 +1,9 @@ import { writable, derived, type Writable } from 'svelte/store'; import { browser } from '$app/environment'; import type { TranscriptionJob } from '$lib/api/client'; -import { PUBLIC_API_URL } from '$env/static/public'; -const WS_URL = (PUBLIC_API_URL || 'http://localhost:3006').replace('http', 'ws'); +const API_URL = 'http://localhost:3006'; +const WS_URL = API_URL.replace('http', 'ws'); export const jobs: Writable> = writable(new Map()); export const isConnected = writable(false); diff --git a/apps/wisekeep/apps/web/src/routes/(protected)/+layout.svelte b/apps/wisekeep/apps/web/src/routes/(protected)/+layout.svelte index d30ed0e71..1c6a73a05 100644 --- a/apps/wisekeep/apps/web/src/routes/(protected)/+layout.svelte +++ b/apps/wisekeep/apps/web/src/routes/(protected)/+layout.svelte @@ -1,5 +1,5 @@ -{@render children()} +
+ {@render children()} +
diff --git a/apps/wisekeep/apps/web/src/routes/+page.svelte b/apps/wisekeep/apps/web/src/routes/+page.svelte new file mode 100644 index 000000000..e38b7fdce --- /dev/null +++ b/apps/wisekeep/apps/web/src/routes/+page.svelte @@ -0,0 +1,32 @@ + + + + Wisekeep - AI Wisdom Extraction + + +
+
+
+

Wird geladen...

+
+