Merged in feat/add-version-to-responses (pull request #2118)

feature: add a version tag to responses SW-2792

* feature: add a version tag to responses


Approved-by: Linus Flood
This commit is contained in:
Joakim Jäderberg
2025-05-16 11:38:41 +00:00
parent 61814698ee
commit f40a666170
8 changed files with 21 additions and 2 deletions

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" },
headers: { "Content-Type": "text/xml", "X-Version": env.VERSION },
})
}