Kumasy-Marketing/app/sitemap.ts

21 lines
561 B
TypeScript

import type { MetadataRoute } from "next";
import { SITE_URL } from "./lib/site";
/**
* Only routes that actually exist belong here — listing a URL that 404s
* is worse than omitting it. The legal pages are linked from the footer
* but not yet built; add them here the moment they ship.
*/
export default function sitemap(): MetadataRoute.Sitemap {
const lastModified = new Date();
return [
{
url: SITE_URL,
lastModified,
changeFrequency: "weekly",
priority: 1,
images: [`${SITE_URL}/dashboard.png`],
},
];
}