From 906a9fccf1b144297b3d0d12b60b0aa36c6573c0 Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Fri, 11 Oct 2024 01:28:20 -0700 Subject: [PATCH] fix: Prerender XML --- src/routes/rss.xml/+server.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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' }