diff --git a/packages/gui/.env b/packages/gui/.env new file mode 100644 index 0000000..f64aa60 --- /dev/null +++ b/packages/gui/.env @@ -0,0 +1 @@ +VUE_APP_PUBLISH_URL=http://dev-sidecar.docmirror.cn/update/preview/ diff --git a/packages/gui/.env.pre b/packages/gui/.env.pre new file mode 100644 index 0000000..20acbd7 --- /dev/null +++ b/packages/gui/.env.pre @@ -0,0 +1 @@ +VUE_APP_PUBLISH_URL=http://dev-sidecar.docmirror.cn/update/ diff --git a/packages/gui/vue.config.js b/packages/gui/vue.config.js index 3fde517..748b79e 100644 --- a/packages/gui/vue.config.js +++ b/packages/gui/vue.config.js @@ -1,6 +1,6 @@ const path = require('path') const webpack = require('webpack') - +const publishUrl = process.env.VUE_APP_PUBLISH_URL module.exports = { pages: { index: { @@ -72,7 +72,7 @@ module.exports = { }, publish: { provider: 'generic', - url: 'http://dev-sidecar.docmirror.cn/update/' + url: publishUrl // url: 'http://dev-sidecar.docmirror.cn/update/preview/' } },