'!'
This commit is contained in:
@@ -34,53 +34,17 @@ module.exports = {
|
||||
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
||||
[process.env.VUE_APP_BASE_API]: {
|
||||
target: `https://jxhorizon.jxc4.com/`,
|
||||
// target: `http://192.168.0.75:8300/`,
|
||||
// target: `http://localhost:8080`,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
['^' + process.env.VUE_APP_BASE_API]: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
// proxy: {
|
||||
// "/v2": {
|
||||
// target: "https://jxhorizon.jxc4.com",
|
||||
// changeOrigin: true,
|
||||
// secure: false,
|
||||
// pathRewrite:{
|
||||
// ['^v2']:"/"
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
sockHost:"https://jxhorizon.jxc4.com/",
|
||||
// sockHost:"http://192.168.0.75:8300",
|
||||
},
|
||||
// devServer: {
|
||||
// port: port,
|
||||
// disableHostCheck: true,
|
||||
// proxy: {
|
||||
// '/horizon': {
|
||||
// target: 'https://jxhorizon.jxc4.com',
|
||||
// changeOrigin: true,
|
||||
// secure: false,
|
||||
// pathRewrite: {
|
||||
// '^/horizon': '/horizon'
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
// devServer: {
|
||||
// port: port,
|
||||
// disableHostCheck: true,
|
||||
// // 👇 👇 只保留这个代理,不要加任何多余配置 👇 👇
|
||||
// proxy: {
|
||||
// '/horizon': {
|
||||
// target: 'https://jxhorizon.jxc4.com',
|
||||
// changeOrigin: true,
|
||||
// secure: false,
|
||||
// pathRewrite: {
|
||||
// '^/horizon': '/horizon'
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
configureWebpack: {
|
||||
name: name,
|
||||
resolve: {
|
||||
@@ -166,4 +130,4 @@ module.exports = {
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user