SPB Git forge

spb/ai-atlas

Public
41commits 1branches 0releases
4.6 MBsize
maindefault branch
12 days agolast push
HTML 77.2% TypeScript 10.5% Python 9.6% JavaScript 2.5%
411 B · 10 lines typescript
Raw Blame History
1import { SITEMAP_HEADERS, shardIds, toIndex } from '@/components/meta/sitemap-data';23/** Sitemap index at /sitemap.xml: one entry per shard served by /sitemap/<id>.xml. Hourly revalidation. */4export const revalidate = 3600;56export async function GET(): Promise<Response> {7  const ids = await shardIds();8  return new Response(toIndex(ids.map((id) => `/sitemap/${id}.xml`)), { headers: SITEMAP_HEADERS });9}10