|
@@ -9,7 +9,7 @@ const CompressionPlugin = require('compression-webpack-plugin')
|
|
|
|
|
|
const name = process.env.VUE_APP_TITLE || '四平市态势感知平台' // 网页标题
|
|
|
|
|
|
-const port = process.env.port || process.env.npm_config_port || 80 // 端口
|
|
|
+const port = process.env.port || process.env.npm_config_port || 81 // 端口
|
|
|
|
|
|
const ssl_path = require('path')
|
|
|
const fs = require('fs')
|
|
@@ -52,9 +52,9 @@ module.exports = {
|
|
|
proxy: {
|
|
|
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
|
|
[process.env.VUE_APP_BASE_API]: {
|
|
|
- // target: `http://127.0.0.1:3031`,
|
|
|
+ target: `http://127.0.0.1:3031`,
|
|
|
// target: `http://192.168.2.118:3031`,
|
|
|
- target: `http://121.36.228.66:3031`,
|
|
|
+ // target: `http://121.36.228.66:3031`,
|
|
|
changeOrigin: true,
|
|
|
pathRewrite: {
|
|
|
['^' + process.env.VUE_APP_BASE_API]: ''
|