mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-12 02:39:17 +00:00
Update sitemap to use a fixed domain for the generated sitemap instead of deriving from headers
This commit is contained in:
parent
d3007c1123
commit
e67b1c5b11
@ -1,12 +1,10 @@
|
|||||||
import { basePath } from "@/config/siteConfig";
|
import { basePath } from "@/config/siteConfig";
|
||||||
import type { MetadataRoute } from "next";
|
import type { MetadataRoute } from "next";
|
||||||
import { headers } from "next/headers";
|
|
||||||
|
|
||||||
export const dynamic = "force-static";
|
export const dynamic = "force-static";
|
||||||
|
|
||||||
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
|
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
|
||||||
const headersList = await headers();
|
let domain = "community-scripts.github.io";
|
||||||
let domain = headersList.get("host") as string;
|
|
||||||
let protocol = "https";
|
let protocol = "https";
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user