.env variables are read only when quasar.config.js is changed #17850
Labels
area/cli
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-vite
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
Tried to migrate project from vite-plugin to app-vite and according to docs
.env
file support should work out of the box. Howeverquasar dev
command loads variables from.env
files only when it detectsquasar.config.js
file changes.What did you expect to happen?
quasar dev
should always load variables from.env
files, regardles of whetherquasar.config.js
change detected.Reproduction URL
https://stackblitz.com/edit/quasarframework-stackblitz-templates-6bp4rxwv?file=quasar.config.js
How to reproduce?
Only two files are changed in the repro project, there is new
.env
file withX_CUSTOM_ENV
variable and inquasar.config.js
I addedconsole.log
to print all loaded environment variables.To reproduce:
pnpm dev
X_CUSTOM_ENV
is not to be foundquasar.config.js
filequasar.config.js
, after reload you will see the new variableFlavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite)
Platforms/Browsers
No response
Quasar info output
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: