From 0051e9ba07f5f69b2239c66e24e83b8bfd06b3a9 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Mon, 22 Jan 2024 17:38:33 +0800 Subject: [PATCH] feat: add force-dynamic for feed --- src/app/[locale]/feed/hottest/route.ts | 2 ++ src/app/[locale]/feed/latest/route.ts | 2 ++ src/app/[locale]/site/[site]/feed/comments/route.ts | 2 ++ src/app/[locale]/site/[site]/feed/route.ts | 2 ++ 4 files changed, 8 insertions(+) diff --git a/src/app/[locale]/feed/hottest/route.ts b/src/app/[locale]/feed/hottest/route.ts index e40264ee23..27f44879bc 100644 --- a/src/app/[locale]/feed/hottest/route.ts +++ b/src/app/[locale]/feed/hottest/route.ts @@ -30,3 +30,5 @@ export async function GET(request: Request) { const res = new NextServerResponse() return res.status(200).rss(data, format) } + +export const dynamic = "force-dynamic" diff --git a/src/app/[locale]/feed/latest/route.ts b/src/app/[locale]/feed/latest/route.ts index 6e7b293a03..2325d5e717 100644 --- a/src/app/[locale]/feed/latest/route.ts +++ b/src/app/[locale]/feed/latest/route.ts @@ -28,3 +28,5 @@ export async function GET(request: Request) { const res = new NextServerResponse() return res.status(200).rss(data, format) } + +export const dynamic = "force-dynamic" diff --git a/src/app/[locale]/site/[site]/feed/comments/route.ts b/src/app/[locale]/site/[site]/feed/comments/route.ts index cec588226e..26c2dda576 100644 --- a/src/app/[locale]/site/[site]/feed/comments/route.ts +++ b/src/app/[locale]/site/[site]/feed/comments/route.ts @@ -66,3 +66,5 @@ export async function GET( const res = new NextServerResponse() return res.status(200).rss(data, format) } + +export const dynamic = "force-dynamic" diff --git a/src/app/[locale]/site/[site]/feed/route.ts b/src/app/[locale]/site/[site]/feed/route.ts index 8e952bcbbd..48b5865aee 100644 --- a/src/app/[locale]/site/[site]/feed/route.ts +++ b/src/app/[locale]/site/[site]/feed/route.ts @@ -92,3 +92,5 @@ export async function GET( const res = new NextServerResponse() return res.status(200).rss(data, format) } + +export const dynamic = "force-dynamic"