fix: Prerender XML

This commit is contained in:
Leni Aniva 2024-10-11 01:28:20 -07:00
parent c00d54936b
commit 906a9fccf1
Signed by: aniva
GPG Key ID: 4D9B1C8D10EA4C50
1 changed files with 3 additions and 1 deletions

View File

@ -2,7 +2,9 @@ import { getPosts } from '$lib/posts';
import siteMetadata from '$content/metadata.json'; import siteMetadata from '$content/metadata.json';
import type { Post } from '$lib/types' 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 posts: Post[] = await getPosts();
const headers = { 'Content-Type': 'application/xml' } const headers = { 'Content-Type': 'application/xml' }