1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 11:06:39 -04:00

include post content in rss/atom feeds

This commit is contained in:
2025-03-27 18:02:37 -04:00
parent a4aa15d2c5
commit 2d42a7447e
6 changed files with 70 additions and 10 deletions

View File

@ -3,7 +3,9 @@ import { buildFeed } from "../../lib/helpers/build-feed";
export const dynamic = "force-static";
export const GET = async () => {
return new Response((await buildFeed()).atom1(), {
const feed = await buildFeed();
return new Response(feed.atom1(), {
headers: {
"content-type": "application/atom+xml; charset=utf-8",
},

View File

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