Files
HokmPlay/site/app/sitemap.ts
T

14 lines
415 B
TypeScript
Raw Normal View History

import type { MetadataRoute } from "next";
import { SITE_URL } from "@/lib/site";
export const dynamic = "force-static";
export default function sitemap(): MetadataRoute.Sitemap {
const routes = ["", "/download", "/faq", "/support", "/privacy", "/terms"];
return routes.map((r) => ({
url: `${SITE_URL}${r}`,
changeFrequency: r === "" ? "weekly" : "monthly",
priority: r === "" ? 1 : 0.7,
}));
}