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,10 +1,10 @@
import fs from "fs";
import path from "path";
import Link from "next/link";
import { PageHeader } from "@/components/page-header";
import { Card, CardContent } from "@/components/ui/card";
import { Badge } from "@/components/ui/badge";
import { ExtractedVerseCount } from "../extracted-verse-count";
import { getBookMeta } from "@/lib/api";
import { notFound } from "next/navigation";
type ChapterInfo = {
number: number;
@@ -19,17 +19,17 @@ type CantoInfo = {
chapters: ChapterInfo[];
};
type Intro = {
book: string;
title: string;
author: string;
totalCantos: number;
cantos: CantoInfo[];
};
export default async function SbPage() {
const meta = await getBookMeta("sb");
if (!meta) notFound();
export default function SbPage() {
const introPath = path.join(process.cwd(), "app/lib/books/sb/intro.json");
const intro: Intro = JSON.parse(fs.readFileSync(introPath, "utf-8"));
const intro = meta as {
book: string;
title: string;
author: string;
totalCantos: number;
cantos: CantoInfo[];
};
return (
<div className="min-h-screen bg-background">