diff --git a/src/routes/rss.xml/+server.ts b/src/routes/rss.xml/+server.ts index 370fcb5..d95e1d4 100644 --- a/src/routes/rss.xml/+server.ts +++ b/src/routes/rss.xml/+server.ts @@ -2,7 +2,9 @@ import { getPosts } from '$lib/posts'; import siteMetadata from '$content/metadata.json'; import type { Post } from '$lib/types' -export async function GET({ fetch }) { +export const prerender = true; + +export async function GET() { const posts: Post[] = await getPosts(); const headers = { 'Content-Type': 'application/xml' }