spb/satelliteindex
Public
TypeScript 66.5%
Python 30.9%
JavaScript 1.4%
CSS 0.7%
1import { SITEMAP_HEADERS, satelliteShardCount, toIndex } from '@/components/meta/sitemap-data';23/** Sitemap index at /sitemap.xml (robots.txt points here): one entry per shard served by /sitemap/[id].xml. Hourly revalidation. */4export const revalidate = 3600;56export async function GET(): Promise<Response> {7 const shards = await satelliteShardCount();8 const ids = Array.from({ length: shards + 1 }, (_, i) => i);9 return new Response(toIndex(ids), { headers: SITEMAP_HEADERS });10}11