SPB Git forge

spb/polyllm

Public
15commits 1branches 0releases
2.2 MBsize
maindefault branch
13 days agolast push
TypeScript 97.4% SQL 1% JavaScript 0.9% CSS 0.6%
970 B · 18 lines typescript
Raw Blame History
1import type { MetadataRoute } from "next";2import { APP_URL } from "@/lib/env";34export default function sitemap(): MetadataRoute.Sitemap {5  const now = new Date();6  const entries: { path: string; priority: number; changeFrequency: MetadataRoute.Sitemap[number]["changeFrequency"] }[] = [7    { path: "/", priority: 1, changeFrequency: "weekly" },8    { path: "/models", priority: 0.9, changeFrequency: "daily" },9    { path: "/security", priority: 0.7, changeFrequency: "monthly" },10    { path: "/signup", priority: 0.8, changeFrequency: "monthly" },11    { path: "/login", priority: 0.6, changeFrequency: "monthly" },12    { path: "/contact", priority: 0.4, changeFrequency: "yearly" },13    { path: "/privacy", priority: 0.3, changeFrequency: "yearly" },14    { path: "/terms", priority: 0.3, changeFrequency: "yearly" },15  ];16  return entries.map((e) => ({ url: `${APP_URL}${e.path}`, lastModified: now, changeFrequency: e.changeFrequency, priority: e.priority }));17}18