Merged in revert-version (pull request #2128)

revert including version in layouts and api responses

* revert including version in layouts and api responses


Approved-by: Linus Flood
This commit is contained in:
Joakim Jäderberg
2025-05-16 12:57:17 +00:00
parent ec29664a60
commit 4f0c61f68f
8 changed files with 2 additions and 21 deletions

View File

@@ -48,6 +48,6 @@ export async function GET(
const sitemapXML = `<?xml version="1.0" encoding="UTF-8"?>\n<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">${entries.join("")}\n</urlset>`
return new Response(sitemapXML, {
headers: { "Content-Type": "text/xml", "X-Version": env.VERSION },
headers: { "Content-Type": "text/xml" },
})
}

View File

@@ -33,6 +33,6 @@ export async function GET() {
const sitemapIndexXML = `<?xml version="1.0" encoding="UTF-8"?>\n<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">${urls.join("")}\n</sitemapindex>`
return new Response(sitemapIndexXML, {
headers: { "Content-Type": "text/xml", "X-Version": env.VERSION },
headers: { "Content-Type": "text/xml" },
})
}