From 012a638e64c96a8130c23119796873f51fe603b4 Mon Sep 17 00:00:00 2001 From: Mathias Oterhals Myklebust <24361490+mathiazom@users.noreply.github.com> Date: Mon, 16 Sep 2024 08:52:07 +0000 Subject: [PATCH] fix(sitemap): dynamic sitemap (#649) --- src/app/sitemap.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/sitemap.ts b/src/app/sitemap.ts index 73652f949..680c50c15 100644 --- a/src/app/sitemap.ts +++ b/src/app/sitemap.ts @@ -10,6 +10,9 @@ interface SitemapDocument { const clientWithToken = client.withConfig({ token }); +export const dynamic = "force-dynamic"; +export const fetchCache = "default-no-store"; + export default async function sitemap(): Promise { const documents = await clientWithToken.fetch(`*[defined(slug)]`);