43 lines
1.4 KiB
JavaScript
43 lines
1.4 KiB
JavaScript
const { defineConfig } = require('@vue/cli-service')
|
|
module.exports = defineConfig({
|
|
transpileDependencies: true,
|
|
devServer: {
|
|
proxy: {
|
|
'/tiaojie': {
|
|
// target: 'https://api.xayunmei.com/tiaojieapitest', // 后端服务器地址
|
|
target: 'http://121.40.189.20:6001',
|
|
changeOrigin: true, // 是否改变Origin头信息
|
|
secure : false,
|
|
pathRewrite: {
|
|
'^/tiaojie': '' // 将/api前缀重写为空字符串
|
|
},
|
|
},
|
|
'/tiaojieprod': {
|
|
// target: 'https://api.xayunmei.com/tiaojieapi', // 后端服务器地址
|
|
target: 'http://121.40.189.20:7001',
|
|
changeOrigin: true, // 是否改变Origin头信息
|
|
secure : false,
|
|
pathRewrite: {
|
|
'^/tiaojie': '' // 将/api前缀重写为空字符串
|
|
},
|
|
},
|
|
'/zhongcai': {
|
|
target: 'https://api.xayunmei.com/zhongcaiapitest', // 后端服务器地址
|
|
changeOrigin: true, // 是否改变Origin头信息
|
|
secure : false,
|
|
pathRewrite: {
|
|
'^/zhongcai': '' // 将/api前缀重写为空字符串
|
|
},
|
|
},
|
|
'/zhongcaiz': {
|
|
target: 'https://api.xayunmei.com/zhongcaiapi', // 后端服务器地址
|
|
changeOrigin: true, // 是否改变Origin头信息
|
|
secure : false,
|
|
pathRewrite: {
|
|
'^/zhongcai': '' // 将/api前缀重写为空字符串
|
|
},
|
|
}
|
|
}
|
|
}
|
|
})
|