fix logged in state broken on rosary due to prerendering
All checks were successful
CI / update (push) Successful in 1m21s

This commit is contained in:
2026-01-30 12:47:28 +01:00
parent a58e52c891
commit daa801e14a

View File

@@ -1,7 +1,8 @@
import { mysteryReferences, type MysteryDescription, type VerseData } from '$lib/data/mysteryDescriptions';
import type { PageServerLoad } from './$types';
export const prerender = true;
// TODO: allow prerendering/fetching of bible verses at compile time while keeping the rest dynamic.
// export const prerender = true; # breaks user logged-in state
async function fetchBibleData(reference: string, fetch: typeof globalThis.fetch): Promise<{ text: string; verseData: VerseData | null }> {
try {