You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a huge hack however. I'm suggesting a new configuration option be added to @vue/cli-service/lib/util/resolveClientEnv.js, so that it's possible to provide a custom regex that defines the environment variables that should be made available to Vue.
The text was updated successfully, but these errors were encountered:
Vue.js is fundamentally breaking environment variables
How? Or: What would the expected behaviour be? That every system environment variable that is available on process.env is available in your Vue app, the code delivered to your end users' browsers?
What problem does this feature solve?
At the moment, only environment variables prefixed with VUE_APP_ are loaded into process.env.
I have a third party library that configures itself using environment variables, however those variables can't load as they aren't Vue.js specific.
What does the proposed API look like?
I can work around the issue in vue.config.js:
This is a huge hack however. I'm suggesting a new configuration option be added to
@vue/cli-service/lib/util/resolveClientEnv.js
, so that it's possible to provide a custom regex that defines the environment variables that should be made available to Vue.The text was updated successfully, but these errors were encountered: