import type { MetadataRoute } from "next";

export const dynamic = "force-static";

export default function sitemap(): MetadataRoute.Sitemap {
  const base = "https://nexus.ninjakernen.info";
  const pages = ["", "/forside", "/om-nexus", "/ideen-bag", "/support", "/kontakt", "/downloads"];
  return pages.map((path) => ({
    url: `${base}${path || "/"}`,
    lastModified: new Date(),
    changeFrequency: path === "/downloads" ? "weekly" : "monthly",
    priority: path === "" || path === "/forside" ? 1 : 0.8,
  }));
}
