From 14f5088bc1487107bddfc28a9ca4097fab979e67 Mon Sep 17 00:00:00 2001 From: scosman Date: Thu, 29 Aug 2024 14:56:21 -0400 Subject: [PATCH] prerender sitemap --- src/routes/(marketing)/sitemap.xml/+server.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/routes/(marketing)/sitemap.xml/+server.ts b/src/routes/(marketing)/sitemap.xml/+server.ts index b7748050..8ed4a5ac 100644 --- a/src/routes/(marketing)/sitemap.xml/+server.ts +++ b/src/routes/(marketing)/sitemap.xml/+server.ts @@ -2,6 +2,8 @@ import type { RequestHandler } from "@sveltejs/kit" import * as sitemap from "super-sitemap" import { WebsiteBaseUrl } from "../../../config" +export const prerender = true + export const GET: RequestHandler = async () => { return await sitemap.response({ origin: WebsiteBaseUrl,