import type { MetadataRoute } from "next"; import { SITE_URL } from "@/src/content/site"; import { sitemapEntries } from "@/src/domain/routes"; /** * The homepage and the freelance page, each 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", "freelance"]).map((entry) => ({ url: entry.url, alternates: { languages: { ...entry.alternates.languages } }, })); }