Repository navigation
fix: serve robots.txt with Content-Signal - #1405
Merged
Merged
Conversation
Member
|
🎉 This issue has been resolved in version 20.0.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/robots.txtreturns a JSON 404 today. Addstatic/robots.txt(Docusaurus source) and the same file in the committedbuild/, which is what Express serves and the Dockerfile ships.Content-Signal: search=yes, ai-input=yes, ai-train=yes) inside theUser-agent: *group, withAllow: /and the sitemap.build/is copied by hand rather than re-runningdocs:build, which would re-hash every asset. Docusaurus copiesstatic/verbatim, so the next docs build produces the same file.Test plan
pnpm build && PORT=8881 node dist/server.jscurl -si localhost:8881/robots.txt: 200text/plain, signal line underUser-agent: */sitemap.xmland/unchanged/robots.txton postcodes.io passes the isitagentready robots, AI-rules and content-signal checksNeed help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.