// src/pages/sitemap-index.xml.ts -> /sitemap-index.xml // Egen sitemap utan @astrojs/sitemap (inga nya beroenden). import type { APIRoute } from 'astro'; export const prerender = true; export const GET: APIRoute = ({ site }) => { const base = site ?? new URL('https://imagesbyolofsson.se'); const body = ` ${new URL('/sitemap-0.xml', base).toString()} ${new URL('/posters/sitemap.xml', base).toString()} `; return new Response(body, { headers: { 'Content-Type': 'application/xml; charset=utf-8' } }); };