fix: Prerender XML
This commit is contained in:
parent
c00d54936b
commit
906a9fccf1
|
@ -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' }
|
||||
|
|
Loading…
Reference in New Issue