Parent Directory
|
Revision Log
chore: add trunk
1 | rakinar2 | 575 | 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 |