Initial Paprika Next.js implementation
This commit is contained in:
28
app/sitemap.ts
Normal file
28
app/sitemap.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
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
|
||||
}));
|
||||
}
|
||||
Reference in New Issue
Block a user