Files

14 lines
404 B
TypeScript

import type { MetadataRoute } from "next";
const BASE = "https://0pt.app";
const ROUTES = ["", "/tjanster", "/katalog", "/kallor", "/bestall", "/bestall/beskriv", "/bestall/forskott"];
export default function sitemap(): MetadataRoute.Sitemap {
return ROUTES.map((r) => ({
url: `${BASE}${r}`,
lastModified: new Date(),
changeFrequency: "weekly",
priority: r === "" ? 1 : 0.7,
}));
}