fix: ensure Bible verses are prerendered and served statically
Some checks failed
CI / update (push) Has been cancelled
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user