12 lines
291 B
TypeScript
12 lines
291 B
TypeScript
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",
|
|
},
|
|
});
|
|
}
|