fix: mark image stats route as dynamic
This commit is contained in:
parent
3864cf7ff8
commit
01e124ebb1
@ -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() {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user