Skip to content

Comments

docs: update proxy configuration examples#7123

Merged
chenjiahan merged 2 commits intomainfrom
proxy_examples_0203
Feb 3, 2026
Merged

docs: update proxy configuration examples#7123
chenjiahan merged 2 commits intomainfrom
proxy_examples_0203

Conversation

@chenjiahan
Copy link
Member

Summary

Updates the proxy configuration examples and documentation to use https://example.com and https://example.com/api as the primary remote targets instead of local addresses. The changes improve clarity by consistently demonstrating how to proxy requests to remote domains.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings February 3, 2026 02:22
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @chenjiahan, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the clarity and consistency of proxy configuration documentation by standardizing example URLs. It shifts the focus from local localhost targets to https://example.com for demonstrating remote proxying, while also providing clearer examples for proxying to local services and updating HMR configurations. These changes aim to make the documentation more practical and easier to understand for users configuring proxies.

Highlights

  • Proxy Configuration Examples: Updated all proxy configuration examples in the documentation to consistently use https://example.com and https://example.com/api as remote targets, improving clarity for real-world scenarios.
  • Local Service Proxying: Clarified examples for proxying to local services, distinguishing them from remote targets by using http://localhost:3001/api.
  • HMR Proxy Target: Adjusted the HMR (Hot Module Replacement) proxy target in examples to better reflect typical configurations.
  • Upgrade Guide Consistency: Ensured the upgrade guide (v1-to-v2.mdx) reflects the new proxy example conventions, including the use of pathFilter instead of context for array-based proxy configurations.
Changelog
  • website/docs/en/config/server/proxy.mdx
    • Updated /api proxy target from http://localhost:3000/api to https://example.com/api.
    • Changed 'online domain name' example to 'local service' example, switching target from https://nodejs.org/api to http://localhost:3001/api.
    • Modified http-proxy-middleware v2 and v3 examples to use https://example.com and https://example.com/api respectively.
    • Updated pathRewrite example target from http://localhost:3000 to https://example.com.
    • Adjusted HMR proxy target from http://localhost:3000 to http://localhost:3001/rsbuild-hmr.
    • Changed array proxy target from http://localhost:3000 to https://example.com.
    • Updated bypass example target from http://localhost:3000/api to https://example.com/api.
  • website/docs/en/guide/upgrade/v1-to-v2.mdx
    • Updated proxy target in the upgrade guide from http://localhost:3000 to https://example.com and http://localhost:3000/api to https://example.com/api.
    • Modified array proxy example to use pathFilter instead of context and updated targets to https://example.com and https://example.com/api.
  • website/docs/zh/config/server/proxy.mdx
    • Updated /api proxy target from http://localhost:3000/api to https://example.com/api.
    • Changed '线上域名' (online domain name) example to '本地服务' (local service) example, switching target from https://nodejs.org/api to http://localhost:3001/api.
    • Modified http-proxy-middleware v2 and v3 examples to use https://example.com and https://example.com/api respectively.
    • Updated pathRewrite example target from http://localhost:3000 to https://example.com.
    • Adjusted HMR proxy target from http://localhost:3000 to http://localhost:3001.
    • Changed array proxy target from http://localhost:3000 to https://example.com.
    • Updated bypass example target from http://localhost:3000/api to https://example.com/api.
  • website/docs/zh/guide/upgrade/v1-to-v2.mdx
    • Updated proxy target in the upgrade guide from http://localhost:3000 to https://example.com and http://localhost:3000/api to https://example.com/api.
    • Modified array proxy example to use pathFilter instead of context and updated targets to https://example.com and https://example.com/api.
Activity
  • No specific activity (comments, reviews, or progress updates) has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 3, 2026

Deploying rsbuild with  Cloudflare Pages  Cloudflare Pages

Latest commit: 28b9591
Status: ✅  Deploy successful!
Preview URL: https://82b200ff.rsbuild-v2.pages.dev
Branch Preview URL: https://proxy-examples-0203.rsbuild-v2.pages.dev

View logs

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the proxy configuration examples in the documentation to use remote targets like https://example.com for better clarity. The changes are consistent across both English and Chinese documentation. I've found a minor issue in one of the English examples where a proxy target URL seems to be incorrect, potentially leading to duplicated paths. I've left a suggestion to correct it. Overall, the changes improve the documentation.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the proxy configuration documentation and examples to consistently demonstrate proxying to a remote domain (https://example.com and https://example.com/api) instead of local targets, and clarifies the distinction between remote and local backend examples.

Changes:

  • Update upgrade guides (EN/ZH) for http-proxy-middleware v2→v3 to use https://example.com/api as the target in both object and array proxy configurations.
  • Refresh the main server.proxy config docs (EN/ZH) to use https://example.com/api as the primary remote example, and reposition localhost examples as secondary/local-service scenarios.
  • Adjust related examples for path rewriting, WebSocket proxying, path filters, and bypass behavior to align with the new remote-domain focus.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
website/docs/zh/guide/upgrade/v1-to-v2.mdx Updates Chinese v1→v2 proxy migration examples to use https://example.com/api and pathFilter in line with the new remote-target guidance.
website/docs/zh/config/server/proxy.mdx Revises Chinese server.proxy docs to introduce https://example.com/api as the canonical remote target and move localhost configurations into explicit “local service” examples.
website/docs/en/guide/upgrade/v1-to-v2.mdx Updates English v1→v2 proxy migration examples to consistently use https://example.com/api and pathFilter, matching the new recommended pattern.
website/docs/en/config/server/proxy.mdx Revises English server.proxy docs to focus on https://example.com/api for basic usage, adjust local-service examples, and update path rewrite, WebSocket, path filter, and bypass examples accordingly (with one WebSocket target inconsistency noted).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chenjiahan chenjiahan merged commit 059d650 into main Feb 3, 2026
6 checks passed
@chenjiahan chenjiahan deleted the proxy_examples_0203 branch February 3, 2026 02:34
@chenjiahan chenjiahan mentioned this pull request Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant