29 lines
640 B
TypeScript
29 lines
640 B
TypeScript
import type { MetadataRoute } from "next";
|
|
|
|
const routeOrder = [
|
|
"home",
|
|
"press",
|
|
"judging",
|
|
"scholarly",
|
|
"services",
|
|
"why",
|
|
"resources",
|
|
"faq",
|
|
"start",
|
|
"ask",
|
|
"terms",
|
|
"privacy",
|
|
"disclaimer"
|
|
] as const;
|
|
|
|
export default function sitemap(): MetadataRoute.Sitemap {
|
|
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || "https://paprikalaw.com";
|
|
|
|
return routeOrder.map((key) => ({
|
|
url: `${siteUrl}${key === "home" ? "" : `/${key}`}`,
|
|
lastModified: new Date("2026-07-06"),
|
|
changeFrequency: key === "home" ? "weekly" : "monthly",
|
|
priority: key === "home" ? 1 : key === "start" ? 0.9 : 0.7
|
|
}));
|
|
}
|