diff --git a/src/routes/+layout.ts b/src/routes/+layout.ts index 59bc393..ac50221 100644 --- a/src/routes/+layout.ts +++ b/src/routes/+layout.ts @@ -10,11 +10,14 @@ import type { LayoutLoad } from "./$types"; import { get } from "svelte/store"; import { browser } from "$app/environment"; +// AI-NOTE: Leave SSR off until event fetches are implemented server-side. +export const ssr = false; + /** * Attempts to restore the user's authentication session from localStorage. * Handles extension, Amber (NIP-46), and npub login methods. */ -async function restoreAuthSession() { +function restoreAuthSession() { try { const pubkey = getPersistedLogin(); const loginMethod = localStorage.getItem(loginMethodStorageKey);