Trim the robots text
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user