mongo fix

This commit is contained in:
gosangam
2026-04-14 19:12:11 +05:30
parent e2f8063d90
commit beffb9fae1
172 changed files with 18029 additions and 1298 deletions
+12 -12
View File
@@ -1,6 +1,6 @@
import fs from "fs";
import path from "path";
import Link from "next/link";
import { notFound } from "next/navigation";
import { getBookMeta } from "@/lib/api";
import { PageHeader } from "@/components/page-header";
import { Card, CardContent } from "@/components/ui/card";
import { ExtractedVerseCount } from "../extracted-verse-count";
@@ -11,17 +11,17 @@ type ChapterInfo = {
totalVerses: number;
};
type Intro = {
book: string;
title: string;
author: string;
totalChapters: number;
chapters: ChapterInfo[];
};
export default async function BgPage() {
const meta = await getBookMeta("bg");
if (!meta) notFound();
export default function BgPage() {
const introPath = path.join(process.cwd(), "app/lib/books/bg/intro.json");
const intro: Intro = JSON.parse(fs.readFileSync(introPath, "utf-8"));
const intro = meta as unknown as {
book: string;
title: string;
author: string;
totalChapters: number;
chapters: ChapterInfo[];
};
return (
<div className="min-h-screen bg-background">