Skip to content

Commit

Permalink
feat: add force-dynamic for feed
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Jan 22, 2024
1 parent 00919c6 commit 0051e9b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/[locale]/feed/hottest/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions src/app/[locale]/feed/latest/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions src/app/[locale]/site/[site]/feed/comments/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,5 @@ export async function GET(
const res = new NextServerResponse()
return res.status(200).rss(data, format)
}

export const dynamic = "force-dynamic"
2 changes: 2 additions & 0 deletions src/app/[locale]/site/[site]/feed/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,5 @@ export async function GET(
const res = new NextServerResponse()
return res.status(200).rss(data, format)
}

export const dynamic = "force-dynamic"

0 comments on commit 0051e9b

Please sign in to comment.