Skip to content

Commit f2e1bf1

Browse files
authored
Merge pull request #5447 from Agenta-AI/fix/website-robots-docs-sitemap
fix(website): robots.txt also advertises the proxied docs sitemap
2 parents 7b38504 + 25441d3 commit f2e1bf1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

website/src/pages/robots.txt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const GET: APIRoute = () => {
1111

1212
const body = noindex
1313
? "User-agent: *\nDisallow: /"
14-
: "# Agenta marketing site (https://agenta.ai)\n# Allow all crawlers full access; point them at the generated sitemap index.\nUser-agent: *\nAllow: /\n\nSitemap: https://agenta.ai/sitemap-index.xml\n";
14+
: "# Agenta marketing site (https://agenta.ai)\n# Allow all crawlers full access; point them at the generated sitemap index.\n# The docs sitemap is listed too because agenta.ai/docs/* proxies the docs site.\nUser-agent: *\nAllow: /\n\nSitemap: https://agenta.ai/sitemap-index.xml\nSitemap: https://agenta.ai/docs/sitemap.xml\n";
1515

1616
return new Response(body, {
1717
headers: { "Content-Type": "text/plain; charset=utf-8" },

0 commit comments

Comments
 (0)