Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion app/robots.txt/route.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
import {isDeveloperDocs} from 'sentry-docs/isDeveloperDocs';

const sitemap = isDeveloperDocs
? 'https://develop.sentry.dev/sitemap.xml'
: 'https://docs.sentry.io/sitemap.xml';

export const GET = (_request: Request) => {
return new Response(
`
Sitemap: ${isDeveloperDocs ? 'https://develop.sentry.dev/sitemap.xml' : 'https://docs.sentry.io/sitemap.xml'}
Sitemap: ${sitemap}

User-agent: *
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@coolguyzone since we're wildcard allowing every bot, I'm not sure it makes sense to add in more specific bots that we're also carte blanche allowing? Beside the trainers, which we might want to update in what they're allowed to do, I wonder if we remove the explicits of each bot? Otherwise, we're still missing some, like

  • ChatGPT-User
  • PerplexityBot
  • Perplexity-User
  • Meta-ExternalAgent
  • cohere-ai
  • Diffbot

And that list will continue to get longer/need updating as more bots are created.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, in the future it might make sense if we are adding different rules for different bots but you're right, for now it makes sense just to collapse everything to a wildcard.

Allow: /
Content-Signal: ai-train=yes, search=yes, ai-input=yes
`.trim(),
{headers: {'content-type': 'text/plain'}}
);
Expand Down
Loading