|
@@ -1,7 +1,7 @@
|
|
|
const path = require('path');
|
|
|
const resumeSrc = path.resolve(__dirname, '../web-common');
|
|
|
module.exports = {
|
|
|
- publicPath: process.env.NODE_ENV === 'development' ? '/' : '/www',
|
|
|
+ publicPath: process.env.NODE_ENV === 'development' ? '/' : process.env.VUE_APP_ROUTER,
|
|
|
configureWebpack: config => {
|
|
|
Object.assign(config, {
|
|
|
// 开发生产共同配置
|
|
@@ -21,12 +21,10 @@ module.exports = {
|
|
|
proxy: {
|
|
|
'/api': {
|
|
|
target: 'http://smart.cc-lotus.info',
|
|
|
- changeOrigin: true,
|
|
|
ws: true,
|
|
|
},
|
|
|
'/files': {
|
|
|
target: 'http://smart.cc-lotus.info',
|
|
|
- changeOrigin: true,
|
|
|
ws: true,
|
|
|
},
|
|
|
'/ws': {
|
|
@@ -35,7 +33,6 @@ module.exports = {
|
|
|
},
|
|
|
'/weixin': {
|
|
|
target: 'http://smart.cc-lotus.info',
|
|
|
- changeOrigin: true,
|
|
|
ws: true,
|
|
|
},
|
|
|
},
|