--- trunk/docs/app/sitemap.ts 2024/07/29 17:59:26 575 +++ trunk/docs/app/sitemap.ts 2024/08/20 09:29:23 602 @@ -1,10 +1,9 @@ import urls from "@/sitemap.json"; import { MetadataRoute } from "next"; -import { headers } from "next/headers"; export default function Sitemap(): MetadataRoute.Sitemap { return urls.map(url => ({ - url: `https://${headers().get("Host")}${url.loc}`, + url: `https://${process.env.NEXT_PUBLIC_BASE_DOMAIN}${url.loc}`, lastModified: url.lastmod, priority: url.priority, }));