From e67b1c5b1118114d6255ef5177f666b50b059b26 Mon Sep 17 00:00:00 2001 From: Bram Suurd <78373894+BramSuurdje@users.noreply.github.com> Date: Wed, 6 Nov 2024 21:37:28 +0100 Subject: [PATCH] Update sitemap to use a fixed domain for the generated sitemap instead of deriving from headers --- frontend/src/app/sitemap.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/app/sitemap.ts b/frontend/src/app/sitemap.ts index 759a4511..9377f25d 100644 --- a/frontend/src/app/sitemap.ts +++ b/frontend/src/app/sitemap.ts @@ -1,12 +1,10 @@ import { basePath } from "@/config/siteConfig"; import type { MetadataRoute } from "next"; -import { headers } from "next/headers"; export const dynamic = "force-static"; export default async function sitemap(): Promise { - const headersList = await headers(); - let domain = headersList.get("host") as string; + let domain = "community-scripts.github.io"; let protocol = "https"; return [ {