import type { MetadataRoute } from 'next'; import { SITE_PAGES, SITE_URL } from '@/lib/site-metadata'; export default function sitemap(): MetadataRoute.Sitemap { // Keep the sitemap aligned with public canonicals. Omit lastModified until // we track actual content updates, rather than claiming every build changed it. return Object.values(SITE_PAGES).map(({ path }) => ({ url: new URL(path, SITE_URL).href, })); }