Skip to content

Conversation

ben-fornefeld
Copy link
Member

@ben-fornefeld ben-fornefeld commented Oct 7, 2025

Note

Split docs routing between SDK reference and main docs, proxy Mintlify assets, update sitemap sources, and tweak middleware headers/exclusions.

  • Rewrites/Config:
    • Replace DOCS_NEXT_DOMAIN with SDK_REFERENCE_DOMAIN; introduce DOCUMENTATION_DOMAIN.
    • Update MIDDLEWARE_REWRITE_CONFIG:
      • Route '/docs/sdk-reference' to SDK_REFERENCE_DOMAIN.
      • Route '/docs' and '/mcp' to DOCUMENTATION_DOMAIN.
    • Add explanatory comment on handling rewrites in middleware due to Cloudflare WAF.
  • Sitemap:
    • Aggregate from https://${SDK_REFERENCE_DOMAIN}/sitemap.xml and https://${DOCUMENTATION_DOMAIN}/sitemap.xml (plus landing page); adjust priorities.
  • Middleware:
    • On rewrite, set X-Robots-Tag: index, follow when ALLOW_SEO_INDEXING.
    • Exclude mintlify-assets/ and /_mintlify/ from middleware matcher.
  • Next.js config:
    • Add DOCUMENTATION_DOMAIN constant.
    • Convert rewrites to beforeFiles and add Mintlify asset proxies: '/mintlify-assets/:path*' and '/_mintlify/:path*' to https://${DOCUMENTATION_DOMAIN}.

Written by Cursor Bugbot for commit 4233bf5. This will update automatically on new commits. Configure here.

Copy link

vercel bot commented Oct 7, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
web Ready Ready Preview Comment Oct 13, 2025 0:58am
web-juliett Ready Ready Preview Comment Oct 13, 2025 0:58am

@ben-fornefeld ben-fornefeld changed the title refactor: docs rewrite config Refactor: Docs rewrite config Oct 10, 2025
@ben-fornefeld ben-fornefeld changed the title Refactor: Docs rewrite config Refactor: Docs rewriting policy Oct 10, 2025
@ben-fornefeld ben-fornefeld marked this pull request as ready for review October 10, 2025 12:54
@ben-fornefeld ben-fornefeld changed the title Refactor: Docs rewriting policy Refactor: Documentation Rewrites Oct 10, 2025
@ben-fornefeld
Copy link
Member Author

bugbot run

cursor[bot]

This comment was marked as outdated.

- Changed DOCUMENTATION_DOMAIN from 'e2b-docs.dev' to 'e2b.mintlify.app'.
- Added 'noindex, nofollow' to X-Robots-Tag header when SEO indexing is not allowed.
- Updated comments in rewrites configuration for clarity on custom header handling.
@ben-fornefeld ben-fornefeld merged commit fcb5273 into main Oct 13, 2025
5 checks passed
@ben-fornefeld ben-fornefeld deleted the refactor-docs-rewrite-config branch October 13, 2025 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation proxy

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants