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: add inlineConfig.envFile option to disable .env files #2475

Merged
merged 1 commit into from
Apr 14, 2021

Conversation

egoist
Copy link
Contributor

@egoist egoist commented Mar 11, 2021

This feature is primarily for frameworks that use Vite under the hood:

  • Frameworks might need to load .env before starting Vite dev server, so they use the loadEnv function provided by Vite.
  • Vite loads .env again when it's unnecessary
  • Vite restarts when .env changes but this should be left to user in this case

@egoist
Copy link
Contributor Author

egoist commented Mar 11, 2021

Tests work locally, but somehow it failed on circleci.

@antfu
Copy link
Member

antfu commented Mar 13, 2021

Failure is unrelated.

@antfu antfu added the p2-nice-to-have Not breaking anything but nice to have (priority) label Mar 13, 2021
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
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants