fix: mark image stats route as dynamic
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-03-25 15:42:07 +08:00
parent 3864cf7ff8
commit 01e124ebb1

View File

@ -4,8 +4,7 @@ import { generatedImage } from "@/lib/db/schema";
import { eq, sql } from "drizzle-orm";
import { auth } from "@/app/(auth)/auth";
// 缓存配置:每天中午12点更新(约12小时缓存)
export const revalidate = 43200; // 12小时,单位秒
export const dynamic = "force-dynamic";
export async function GET() {
try {
@ -37,4 +36,3 @@ export async function GET() {
);
}
}