Trim the robots text

This commit is contained in:
Quinn Hegeman
2026-03-08 13:09:46 +01:00
parent 2411c6fdc8
commit 4d56dce1af

View File

@@ -1,7 +1,6 @@
import { getRobotsSettings } from "@/content/settings/robots";
import { getSettings } from "@/content/settings/settings";
import type { APIRoute } from "astro";
import minifyXML from "minify-xml";
export const GET = (async () => {
const settings = await getSettings();
@@ -57,7 +56,7 @@ export const GET = (async () => {
crawlerContent = crawlerContent + "\n\n\n"
});
return new Response(crawlerContent, {
return new Response(crawlerContent.trim(), {
status: 200,
statusText: "OK",
headers: {