fix: random page breaking?

This commit is contained in:
trafficlunar 2026-03-28 23:07:26 +00:00
parent 341b8f58a5
commit dd651d6562

View file

@ -1,6 +1,8 @@
import { redirect } from "next/navigation";
import { prisma } from "@/lib/prisma";
export const dynamic = "force-dynamic";
export default async function RandomPage() {
const count = await prisma.mii.count();
if (count === 0) redirect("/");