include post content in rss/atom feeds

This commit is contained in:
jake committed 2025-03-27 18:02:37 -04:00
1 parent a4aa15d2c5
commit 2d42a7447e
6 files changed
+70 -10

No files matched your search

+3 -1
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",
},
+3 -1
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",
},