mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-06-27 17:25:43 -04:00
15 lines
341 B
TypeScript
15 lines
341 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.atom1(), {
|
|
headers: {
|
|
"content-type": "application/atom+xml; charset=utf-8",
|
|
},
|
|
});
|
|
};
|