Trim the robots text
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
import { getRobotsSettings } from "@/content/settings/robots";
|
import { getRobotsSettings } from "@/content/settings/robots";
|
||||||
import { getSettings } from "@/content/settings/settings";
|
import { getSettings } from "@/content/settings/settings";
|
||||||
import type { APIRoute } from "astro";
|
import type { APIRoute } from "astro";
|
||||||
import minifyXML from "minify-xml";
|
|
||||||
|
|
||||||
export const GET = (async () => {
|
export const GET = (async () => {
|
||||||
const settings = await getSettings();
|
const settings = await getSettings();
|
||||||
@@ -57,7 +56,7 @@ export const GET = (async () => {
|
|||||||
crawlerContent = crawlerContent + "\n\n\n"
|
crawlerContent = crawlerContent + "\n\n\n"
|
||||||
});
|
});
|
||||||
|
|
||||||
return new Response(crawlerContent, {
|
return new Response(crawlerContent.trim(), {
|
||||||
status: 200,
|
status: 200,
|
||||||
statusText: "OK",
|
statusText: "OK",
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
Reference in New Issue
Block a user