Refactor code structure for improved readability and maintainability

This commit is contained in:
2026-03-10 16:37:55 +07:00
parent 75ed8e233b
commit 8908395867
45 changed files with 2528 additions and 365 deletions
+4 -1
View File
@@ -4,6 +4,8 @@ import { prisma } from "@/lib/prisma"
import { NovelCard } from "@/components/novel-card"
import { notFound } from "next/navigation"
export const dynamic = "force-dynamic"
export default async function GenreDetailPage({ params }: { params: Promise<{ slug: string }> }) {
const { slug } = await params
@@ -25,7 +27,8 @@ export default async function GenreDetailPage({ params }: { params: Promise<{ sl
},
orderBy: {
updatedAt: "desc"
}
},
take: 20
})
// Basic layout without sort for purely server side representation without search params. Optional searchParams can be added later if needed.