1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-06-27 17:45:41 -04:00
Files
jarv.is/app/feed.xml/route.ts
2025-05-02 22:04:26 -04:00

15 lines
339 B
TypeScript

import { NextResponse } from "next/server";
import { buildFeed } from "@/lib/helpers/build-feed";
export const dynamic = "force-static";
export const GET = async () => {
const feed = await buildFeed();
return new NextResponse(feed.rss2(), {
headers: {
"content-type": "application/rss+xml; charset=utf-8",
},
});
};