Skip to content

Conversation

@chenjiahan
Copy link
Member

Summary

Added two ways to access the environment context: via Rsbuild's plugin hooks and the Environment API, with corresponding links for better guidance.

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings May 31, 2025 04:40
@netlify
Copy link

netlify bot commented May 31, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 3c0189c
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/683a8831c7e8a000090a7bdd
😎 Deploy Preview https://deploy-preview-5335--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: 67 (🟢 up 10 from production)
Accessibility: 97 (no change from production)
Best Practices: 92 (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
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 clarifies how to access the environment context by updating the documentation in both the Chinese and English versions.

  • Updated the explanation to include two methods of accessing the environment context via Rsbuild's Plugin hooks and the Environment API.
  • Modified type annotations to use a link reference for EnvironmentContext.

Reviewed Changes

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

File Description
website/docs/zh/api/javascript-api/environment-api.mdx Updated documentation text and list format for clearer guidance on accessing environment context.
website/docs/en/api/javascript-api/environment-api.mdx Updated documentation text and list format for a clearer explanation of accessing environment context.

@chenjiahan chenjiahan merged commit 1276458 into main May 31, 2025
12 checks passed
@chenjiahan chenjiahan deleted the env_context_doc_0531 branch May 31, 2025 04:41
@chenjiahan chenjiahan mentioned this pull request Jun 2, 2025
@chenjiahan chenjiahan mentioned this pull request Jun 26, 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.

1 participant