Skip to content

docs: add example for migrating configEnvironment hook#5641

Merged
chenjiahan merged 2 commits intomainfrom
configEnvironment_example_0721
Jul 21, 2025
Merged

docs: add example for migrating configEnvironment hook#5641
chenjiahan merged 2 commits intomainfrom
configEnvironment_example_0721

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

This pull request updates the migration guides to provide an example to guide users in migrating the configEnvironment hook to Rsbuild plugin.

Checklist

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

Copilot AI review requested due to automatic review settings July 21, 2025 06:24
@netlify
Copy link
Copy Markdown

netlify bot commented Jul 21, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit f934fcb
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/687ddecc013ba50009018d28
😎 Deploy Preview https://deploy-preview-5641--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 73 (🟢 up 4 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
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 examples for migrating the configEnvironment hook from Vite plugins to Rsbuild plugins in both English and Chinese migration guides.

  • Adds a new section explaining how to migrate configEnvironment hook usage
  • Provides side-by-side code examples showing Vite plugin vs Rsbuild plugin implementation

Reviewed Changes

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

File Description
website/docs/zh/guide/migration/vite-plugin.mdx Adds Chinese documentation for configEnvironment hook migration with code examples
website/docs/en/guide/migration/vite-plugin.mdx Adds English documentation for configEnvironment hook migration with code examples

@chenjiahan chenjiahan merged commit 497f535 into main Jul 21, 2025
11 checks passed
@chenjiahan chenjiahan deleted the configEnvironment_example_0721 branch July 21, 2025 06:43
@chenjiahan chenjiahan mentioned this pull request Jul 22, 2025
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.

2 participants