You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added optional documentation subdomain proxying configuration, enabling documentation to be served from external sources with automatic URL normalization for consistent link handling when activated through environment settings.
No actionable comments were generated in the recent review. 🎉
Walkthrough
The change adds a new rewrites() function to the Next.js configuration in apps/docs/next.config.mjs. This function conditionally enables request proxying to a configurable base URL when the ENABLE_DOCS_SUBDOMAIN_PROXY environment variable is set to "1".
Added async rewrites() function that conditionally proxies all requests (/:path*) to a configurable base URL (defaulting to https://prisma.io/docs) when ENABLE_DOCS_SUBDOMAIN_PROXY environment variable equals "1". Includes trailing slash normalization and documentation comments for local testing instructions.
Estimated code review effort
🎯 2 (Simple) | ⏱️ ~10 minutes
🚥 Pre-merge checks | ✅ 3 | ❌ 1
❌ Failed checks (1 inconclusive)
Check name
Status
Explanation
Resolution
Title check
❓ Inconclusive
The title 'feat: proxy setup' is vague and doesn't clearly convey the specific purpose of the change—it could refer to any proxy configuration.
Consider a more descriptive title like 'feat: add docs subdomain proxy with environment-based configuration' to clarify the change's scope and intent.
✅ Passed checks (3 passed)
Check name
Status
Explanation
Description Check
✅ Passed
Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage
✅ Passed
No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Merge Conflict Detection
✅ Passed
✅ No merge conflicts detected when merging into main
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
Comment @coderabbitai help to get the list of available commands and usage tips.
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
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 by CodeRabbit