Update sitemap to use a fixed domain for the generated sitemap instead of deriving from headers

This commit is contained in:
Bram Suurd 2024-11-06 21:37:28 +01:00
parent d3007c1123
commit e67b1c5b11

View File

@ -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<MetadataRoute.Sitemap> {
const headersList = await headers();
let domain = headersList.get("host") as string;
let domain = "community-scripts.github.io";
let protocol = "https";
return [
{