fix: ensure Bible verses are prerendered and served statically
Some checks failed
CI / update (push) Has been cancelled

- Fetch full verse data at build time in +page.server.ts
- Pass preloaded verseData to BibleModal instead of fetching client-side
- Remove onMount fetch logic from BibleModal component
- Add VerseData interface to type definitions
- Update handleCitationClick to pass verseData prop

This ensures all Bible verses are embedded in static HTML during build,
eliminating runtime API calls and improving performance.
This commit is contained in:
2025-12-16 16:01:02 +01:00
parent 2be2e1977b
commit b788a615ba
4 changed files with 37 additions and 38 deletions

View File

@@ -3,8 +3,15 @@ export interface MysteryReference {
reference: string;
}
export interface VerseData {
book: string;
chapter: number;
verses: Array<{ verse: number; text: string }>;
}
export interface MysteryDescription extends MysteryReference {
text: string;
verseData?: VerseData | null;
}
// Only store references - texts will be fetched at build time