import type { MetadataRoute } from "next"; import { SITE_URL } from "@/src/content/site"; import { sitemapEntries } from "@/src/domain/routes"; /** * The site is a single page in two languages; the legal pages are not meant for * search results. No modification date: it would have to be the date the content * last changed, and a date that moves with every build teaches search engines to * ignore it. */ export default function sitemap(): MetadataRoute.Sitemap { return sitemapEntries(SITE_URL, ["home"]).map((entry) => ({ url: entry.url, alternates: { languages: { ...entry.alternates.languages } }, })); }