Skip to content

feat: proxy setup#7499

Merged
mhartington merged 1 commit intomainfrom
feat/docs-proxy
Feb 16, 2026
Merged

feat: proxy setup#7499
mhartington merged 1 commit intomainfrom
feat/docs-proxy

Conversation

@aidankmcalister
Copy link
Member

@aidankmcalister aidankmcalister commented Feb 16, 2026

Summary by CodeRabbit

  • Chores
    • 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.

@vercel
Copy link

vercel bot commented Feb 16, 2026

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

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Feb 16, 2026 5:09pm

Request Review

@github-actions
Copy link
Contributor

github-actions bot commented Feb 16, 2026

🍈 Lychee Link Check Report

3660 links: ✅ 2989 OK | 🚫 5 errors | 🔀 0 redirects | 👻 664 excluded

❌ Errors

./apps/docs/content/docs.v6/(index)/prisma-orm/add-to-existing-project/mongodb.mdx

./apps/docs/content/docs.v6/(index)/prisma-orm/quickstart/mongodb.mdx

./apps/docs/content/docs.v6/orm/prisma-client/setup-and-configuration/databases-connections/index.mdx

./apps/docs/content/docs/(index)/prisma-orm/add-to-existing-project/mongodb.mdx

./apps/docs/content/docs/(index)/prisma-orm/quickstart/mongodb.mdx


Full Statistics Table
Status Count
✅ Successful 2989
🔀 Redirected 0
👻 Excluded 664
🚫 Errors 5
⛔ Unsupported 2
⏳ Timeouts 0
❓ Unknown 0

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 16, 2026

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".

Changes

Cohort / File(s) Summary
Next.js Config Enhancement
apps/docs/next.config.mjs
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.

@mhartington mhartington merged commit 6e6912d into main Feb 16, 2026
8 of 15 checks passed
@mhartington mhartington deleted the feat/docs-proxy branch February 16, 2026 17:18
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.

2 participants