SPB Git forge
3commits 1branches 0releases
417.0 KBsize
maindefault branch
10 days agolast push
TypeScript 66.5% Python 30.9% JavaScript 1.4% CSS 0.7%
490 B · 11 lines typescript
Raw Blame History
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