Skip to content

feat: add robots.txt and per-route noindex robots meta - #1484

Open
digofavour-hub wants to merge 1 commit into
CalloraOrg:mainfrom
digofavour-hub:feat/robots-txt-noindex
Open

digofavour-hub wants to merge 1 commit into
CalloraOrg:mainfrom
digofavour-hub:feat/robots-txt-noindex

Conversation

@digofavour-hub

Copy link
Copy Markdown

Closes #1418

Summary

  • Add public/robots.txt disallowing /billing, /apis/my-apis, /webhooks, and /500 while allowing / (copied verbatim to dist/robots.txt so Vercel serves it before the SPA rewrite).
  • Extend useDocumentTitle with an optional third argument options?: { noindex?: boolean } that creates/updates <meta name="robots" content="noindex, nofollow"> and removes or restores it on cleanup.
  • Add NOINDEX_PREFIXES in src/App.tsx and pass { noindex: true } to useDocumentTitle for routes under /billing, /apis/my-apis, /webhooks, and /500.
  • Document in docs/Deployment.md that robots.txt rules are advisory and that the per-route robots meta covers crawlers that ignore robots.txt.

Testing

  • Extended src/hooks/__tests__/useDocumentTitle.test.ts to cover adding/removing meta[name="robots"], restoring an existing robots meta tag, and leaving <head> untouched when noindex is omitted.
  • Added src/App.robots.test.tsx to verify /billing, /marketplace, and navigating away from /billing.
  • Added src/robotsTxt.test.ts to verify public/robots.txt directives.

@drips-wave

drips-wave Bot commented Nov 23, 2026

Copy link
Copy Markdown

@digofavour-hub Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add public/robots.txt and noindex handling for wallet-gated routes

1 participant