diff --git a/vue.config.js b/vue.config.js index a9e53410..3387d298 100644 --- a/vue.config.js +++ b/vue.config.js @@ -10,7 +10,9 @@ const appConfig = config.get(configFile); console.log(appConfig); config.save(appConfig, configFile); -process.env.VUE_APP_VERSION = require('./package.json').version; +const pkgVersion = require('./package.json').version; + +process.env.VUE_APP_VERSION = process.env.VERSION || pkgVersion; try { const lastCommit = lcl.getLastCommitSync();