NODE_ENV must not be forced. #12956
-
|
https://github.com/quasarframework/quasar/blob/v1/app/lib/quasar-conf-file.js#L769-L780 I upgraded the Quasar version to 1.13.1 > 1.18.6. NODE_ENV cannot be QUASAR-only. Depending on the environment, it is a development server, but there are times when you need to use the production API. I also updated QUASAR but faced a situation where I had to discard it. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
You can either declare your own envirnonment variable and do stuff in your code based on it, or you could set |
Beta Was this translation helpful? Give feedback.
-
|
@MilosPaunovic Of course, I've been using it that way before. |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
On the contrary. It must be forced because Vue, Vue Router, Pinia, Vuex, Vue I18n etc depend on specific values for NODE_ENV (it's just how they roll). However, you can supply and use some other naming scheme in your code. Why should should you look specifically for NODE_ENV and not "SETUP_ENV" etc? |
Beta Was this translation helpful? Give feedback.
On the contrary. It must be forced because Vue, Vue Router, Pinia, Vuex, Vue I18n etc depend on specific values for NODE_ENV (it's just how they roll).
However, you can supply and use some other naming scheme in your code. Why should should you look specifically for NODE_ENV and not "SETUP_ENV" etc?