fix: disallow crawling from /_astro/ (#399)
* fix: disallow crawling from `/_astro/` * fix: add missing newline at end of robots.txt.ts file --------- Co-authored-by: Joey Chen <JoeyC-Dev@users.noreply.github.com> Co-authored-by: L4Ph <4ranci0ne@gmail.com>
This commit is contained in:
parent
8cceb83e81
commit
174c5d8efc
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ import type { APIRoute } from "astro";
|
||||||
|
|
||||||
const robotsTxt = `
|
const robotsTxt = `
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Allow: /
|
Disallow: /_astro/
|
||||||
|
|
||||||
Sitemap: ${new URL("sitemap-index.xml", import.meta.env.SITE).href}
|
Sitemap: ${new URL("sitemap-index.xml", import.meta.env.SITE).href}
|
||||||
`.trim();
|
`.trim();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue