Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(env): add false option for envDir to disable env loading #19503

Merged
merged 12 commits into from
Mar 31, 2025

Conversation

OnlyWick
Copy link
Contributor

Description

close #19373.

@OnlyWick
Copy link
Contributor Author

OnlyWick commented Feb 24, 2025

This will cause all .env files to not be loaded. If using dotenvx, you can access the env variables injected by dotenvx through process.env.ENV_NAME.

@sapphi-red sapphi-red added the p2-to-be-discussed Enhancement under consideration (priority) label Feb 25, 2025
@bluwy bluwy changed the title feat(vite): add false option for envDir to disable env loading feat(env): add false option for envDir to disable env loading Mar 19, 2025
@sapphi-red
Copy link
Member

Would you also update the docs, too?

@OnlyWick OnlyWick force-pushed the feat-supports-disable-env-loading branch from bcc3b2e to f6a587a Compare March 28, 2025 03:25
@OnlyWick OnlyWick requested a review from sapphi-red March 28, 2025 03:31
@OnlyWick OnlyWick requested a review from sapphi-red March 28, 2025 13:34
@sapphi-red sapphi-red added p2-nice-to-have Not breaking anything but nice to have (priority) and removed p2-to-be-discussed Enhancement under consideration (priority) labels Mar 31, 2025
@patak-dev patak-dev merged commit bca89e1 into vitejs:main Mar 31, 2025
16 checks passed
@OnlyWick OnlyWick deleted the feat-supports-disable-env-loading branch March 31, 2025 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2-nice-to-have Not breaking anything but nice to have (priority)
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add envDir: false option
3 participants