refactor: preview

pull/88/head
xiaojunnuo 2021-08-17 22:54:04 +08:00
parent b3d9c8af63
commit 04e3d307ed
3 changed files with 4 additions and 2 deletions

1
packages/gui/.env Normal file
View File

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

1
packages/gui/.env.pre Normal file
View File

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

View File

@ -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/'
}
},