Env Variables and Modes #15303
-
Hello,
vite build --mode staging But when I use --mode=staging flag in EDIT: |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 15 replies
-
I've recently written this, seems like it is exactly what you need, so give it a look: |
Beta Was this translation helpful? Give feedback.
-
@MilosPaunovic This is great solution, but I'm curious if that vite mode can work properly in Quasar. Vite env mode works out of the box and we don't need to install additional packages to handle it. So if there is any chance we can change mode in vite it should work without any problem. |
Beta Was this translation helpful? Give feedback.
-
Did you ever get this working out of the box with Vite? The custom solution from @MilosPaunovic looks cool but I'd rather stick with a native Vite solution if possible. |
Beta Was this translation helpful? Give feedback.
-
Implemented out of the box support for .env files, as follows:
Also, new quasar.config file props:
Will be available in next q/app-vite and q/app-webpack (version to be decided). There is no "staging" support (at least not yet) in Quasar CLI. |
Beta Was this translation helpful? Give feedback.
Implemented out of the box support for .env files, as follows: