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:
@ -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,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",
|
||||
},
|
||||
|
Reference in New Issue
Block a user