From 04e3d307edc73583d25f9392f59f59a31fab5a3f Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Tue, 17 Aug 2021 22:54:04 +0800 Subject: [PATCH] refactor: preview --- packages/gui/.env | 1 + packages/gui/.env.pre | 1 + packages/gui/vue.config.js | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 packages/gui/.env create mode 100644 packages/gui/.env.pre 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/' } },