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

Environment variables not work without config file #290

Closed
diegoleme opened this issue May 28, 2020 · 0 comments
Closed

Environment variables not work without config file #290

diegoleme opened this issue May 28, 2020 · 0 comments

Comments

@diegoleme
Copy link

diegoleme commented May 28, 2020

Describe the bug

When there is no configuration file (ex.: vite.config.ts), the environment variables of the .env files are not loaded.

This code snippet is not executed: https://github.com/vitejs/vite/blob/master/src/node/config.ts#L349

The configuration file is required?

Reproduction

https://github.com/recruto/cms

System Info

  • vite: 0.17.2
  • macOS: 10.15.4
  • Node: 12.9.1
  • yarn: 1.22.4
  • vue version: 3.0.0-beta.14
  • @vue/compiler-sfc: 3.0.0-beta.14
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant