feat: update content
This commit is contained in:
parent
eaf8ed7d5d
commit
ad1e22c631
7 changed files with 122 additions and 54 deletions
12
app/feed/rss/route.ts
Normal file
12
app/feed/rss/route.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { buildFeed } from "utils/buildFeed";
|
||||
|
||||
export const revalidate = false;
|
||||
|
||||
export async function GET() {
|
||||
return new Response(buildFeed().rss2(), {
|
||||
headers: {
|
||||
"Content-Type": "application/rss+xml; charset=utf-8",
|
||||
"Cache-Control": "public, max-age=3600",
|
||||
},
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue