import { SITEMAP_HEADERS, shardIds, toIndex } from '@/components/meta/sitemap-data'; /** Sitemap index at /sitemap.xml: one entry per shard served by /sitemap/.xml. Hourly revalidation. */ export const revalidate = 3600; export async function GET(): Promise { const ids = await shardIds(); return new Response(toIndex(ids.map((id) => `/sitemap/${id}.xml`)), { headers: SITEMAP_HEADERS }); }