import { unstable_cache } from "next/cache"; import { prisma } from "@/lib/db"; import { collectGenres } from "@/lib/genres"; import { TrendingCarousel } from "@/components/TrendingCarousel"; import { GenreTabs } from "@/components/GenreTabs"; export const dynamic = "force-dynamic"; const getPublishedManga = unstable_cache( async () => prisma.manga.findMany({ where: { status: "PUBLISHED" }, orderBy: { updatedAt: "desc" }, include: { _count: { select: { chapters: true } } }, }), ["home-manga-list"], { revalidate: 300 } ); export default async function Home() { const manga = await getPublishedManga(); const trending = manga.slice(0, 10); const genres = collectGenres(manga); return (