import type {APIRoute} from 'astro'; import {siteConfig} from "@/consts"; const site = siteConfig.site export const GET: APIRoute = () => { const xml = ` ${site}/sitemap-pages.xml ${site}/sitemap-posts.xml `; return new Response(xml, { headers: { 'Content-Type': 'application/xml; charset=utf-8', }, }); };