Initial Paprika Next.js implementation

This commit is contained in:
2026-07-06 12:12:36 -04:00
commit 7d585484a6
38 changed files with 14824 additions and 0 deletions

28
app/sitemap.ts Normal file
View 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
}));
}