Skip to content

Comments

docs: add version differences for proxy config#7119

Merged
chenjiahan merged 1 commit intomainfrom
proxy_doc_version_0202
Feb 2, 2026
Merged

docs: add version differences for proxy config#7119
chenjiahan merged 1 commit intomainfrom
proxy_doc_version_0202

Conversation

@chenjiahan
Copy link
Member

Summary

Clarify differences in proxy configuration between Rsbuild v1 and v2, specifically regarding changes in the underlying http-proxy-middleware library.

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings February 2, 2026 13:35
@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 documentation for Rsbuild's server proxy configuration by detailing the differences in proxy behavior between Rsbuild v1 and v2. The update addresses changes stemming from an upgrade in the underlying http-proxy-middleware library, providing crucial guidance for users on how to correctly configure proxies in different Rsbuild versions. This clarification aims to prevent potential configuration issues and improve the developer experience.

Highlights

  • Documentation Update for Proxy Configuration: A new section titled "Version differences" has been added to the proxy configuration documentation for both English and Chinese versions. This section clarifies the behavioral changes in proxy handling between Rsbuild v1 and v2, specifically due to the upgrade of the underlying http-proxy-middleware library from v2 to v3.
  • Proxy Path Handling Clarification: The documentation now explains that http-proxy-middleware v2 automatically appended the proxied path to the target URL, a behavior no longer present in v3. Users are now advised to explicitly include the path in the target for Rsbuild v2 configurations.
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

Deploying rsbuild with  Cloudflare Pages  Cloudflare Pages

Latest commit: 22b87bb
Status: ✅  Deploy successful!
Preview URL: https://743d6e80.rsbuild-v2.pages.dev
Branch Preview URL: https://proxy-doc-version-0202.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 adds documentation clarifying the proxy configuration differences between Rsbuild v1 and v2. This is a valuable change for users migrating between versions. My review focuses on improving the clarity and correctness of the code examples provided. The current examples use duplicate keys in an object literal, which is invalid and could be confusing. I've suggested replacing them with separate, valid code blocks for each version to make the documentation clearer.

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 adds documentation to clarify the breaking changes in proxy configuration between Rsbuild v1 and v2, specifically related to the upgrade of the underlying http-proxy-middleware library from v2 to v3. The key behavioral change is that v3 no longer automatically appends the proxied path to the target URL, requiring explicit path inclusion in the target configuration.

Changes:

  • Added "Version differences" section to both English and Chinese proxy configuration documentation
  • Documented the breaking change in path handling between http-proxy-middleware v2 and v3
  • Provided code examples showing the difference between v2 and v3 configurations

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
website/docs/zh/config/server/proxy.mdx Added Chinese documentation explaining proxy config version differences with example
website/docs/en/config/server/proxy.mdx Added English documentation explaining proxy config version differences with example

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

@chenjiahan chenjiahan merged commit f7bb41e into main Feb 2, 2026
13 checks passed
@chenjiahan chenjiahan deleted the proxy_doc_version_0202 branch February 2, 2026 13:40
@chenjiahan chenjiahan mentioned this pull request Feb 2, 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