mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-03-29 03:29:13 +00:00
fix: random page breaking?
This commit is contained in:
parent
341b8f58a5
commit
dd651d6562
1 changed files with 2 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
import { redirect } from "next/navigation";
|
import { redirect } from "next/navigation";
|
||||||
import { prisma } from "@/lib/prisma";
|
import { prisma } from "@/lib/prisma";
|
||||||
|
|
||||||
|
export const dynamic = "force-dynamic";
|
||||||
|
|
||||||
export default async function RandomPage() {
|
export default async function RandomPage() {
|
||||||
const count = await prisma.mii.count();
|
const count = await prisma.mii.count();
|
||||||
if (count === 0) redirect("/");
|
if (count === 0) redirect("/");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue