Skip to content

Conversation

@chenjiahan
Copy link
Member

Summary

Add a --no-env flag to the Rsbuild CLI to disable loading of .env files. This allows users to use other tools like
dotenvx.

rsbuild build --no-env

Checklist

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

@netlify
Copy link

netlify bot commented Apr 2, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 8e8bab3
🔍 Latest deploy log https://app.netlify.com/sites/rsbuild/deploys/67ed14819449ab0008660f10
😎 Deploy Preview https://deploy-preview-4947--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: 75 (🟢 up 4 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 site configuration.

@chenjiahan chenjiahan merged commit 707665b into main Apr 2, 2025
11 checks passed
@chenjiahan chenjiahan deleted the disable_loading_0402 branch April 2, 2025 10:51
@chenjiahan chenjiahan mentioned this pull request Apr 3, 2025
github-merge-queue bot pushed a commit to lynx-family/lynx-stack that referenced this pull request Apr 15, 2025
<!--
  Thank you for submitting a pull request!

We appreciate the time and effort you have invested in making these
changes. Please ensure that you provide enough information to allow
others to review your pull request.

Upon submission, your pull request will be automatically assigned with
reviewers.

If you want to learn more about contributing to this project, please
visit:
https://github.com/lynx-family/lynx-stack/blob/main/CONTRIBUTING.md.
-->

## Summary

<!-- Can you explain the reasoning behind implementing this change? What
problem or issue does this pull request resolve? -->

<!-- It would be helpful if you could provide any relevant context, such
as GitHub issues or related discussions. -->

As one of several PRs addressing issue #304

Support cli option `--no-env` to disable loading of `.env` files

Reference links:
-
#233 (comment)
- web-infra-dev/rsbuild#4947

## Checklist

<!--- Check and mark with an "x" -->

- [x] Tests updated (or not required).
- [x] Documentation updated (or not required).
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