diff --git a/frontend/src/routes/auth/logout/+page.svelte b/frontend/src/routes/auth/logout/+page.svelte index 0c8326b..611a46a 100644 --- a/frontend/src/routes/auth/logout/+page.svelte +++ b/frontend/src/routes/auth/logout/+page.svelte @@ -3,8 +3,6 @@ import { userStore } from "$lib/store"; import { onMount } from "svelte"; - export const ssr = false; - onMount(() => { userStore.set(null); localStorage.removeItem("pronouns-token"); diff --git a/frontend/src/routes/auth/logout/+page.ts b/frontend/src/routes/auth/logout/+page.ts new file mode 100644 index 0000000..a3d1578 --- /dev/null +++ b/frontend/src/routes/auth/logout/+page.ts @@ -0,0 +1 @@ +export const ssr = false;