/[sudobot]/trunk/docs/app/sitemap.ts
ViewVC logotype

Contents of /trunk/docs/app/sitemap.ts

Parent Directory Parent Directory | Revision Log Revision Log


Revision 575 - (show annotations)
Mon Jul 29 17:59:26 2024 UTC (8 months ago) by rakinar2
File MIME type: application/typescript
File size: 340 byte(s)
chore: add trunk
1 import urls from "@/sitemap.json";
2 import { MetadataRoute } from "next";
3 import { headers } from "next/headers";
4
5 export default function Sitemap(): MetadataRoute.Sitemap {
6 return urls.map(url => ({
7 url: `https://${headers().get("Host")}${url.loc}`,
8 lastModified: url.lastmod,
9 priority: url.priority,
10 }));
11 }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26