Browse Source

refactor: preview

pull/88/head
xiaojunnuo 3 years ago
parent
commit
04e3d307ed
  1. 1
      packages/gui/.env
  2. 1
      packages/gui/.env.pre
  3. 4
      packages/gui/vue.config.js

1
packages/gui/.env

@ -0,0 +1 @@
VUE_APP_PUBLISH_URL=http://dev-sidecar.docmirror.cn/update/preview/

1
packages/gui/.env.pre

@ -0,0 +1 @@
VUE_APP_PUBLISH_URL=http://dev-sidecar.docmirror.cn/update/

4
packages/gui/vue.config.js

@ -1,6 +1,6 @@
const path = require('path') const path = require('path')
const webpack = require('webpack') const webpack = require('webpack')
const publishUrl = process.env.VUE_APP_PUBLISH_URL
module.exports = { module.exports = {
pages: { pages: {
index: { index: {
@ -72,7 +72,7 @@ module.exports = {
}, },
publish: { publish: {
provider: 'generic', provider: 'generic',
url: 'http://dev-sidecar.docmirror.cn/update/' url: publishUrl
// url: 'http://dev-sidecar.docmirror.cn/update/preview/' // url: 'http://dev-sidecar.docmirror.cn/update/preview/'
} }
}, },

Loading…
Cancel
Save