vue cli 3 plugin to expose none
VUE_APP_
env to frontend
$ npm i vue-cli-plugin-expose-env --save
vue.config.js
module.exports = {
pluginOptions: {
exposeEnv: ['SOME_ENV'],
},
}
then it's ok to use process.env.SOME_ENV
in frontend code
the MIT License http://magicdawn.mit-license.org