Files
Arbitrate-FrontendH5/vue.config.js
T

43 lines
1.4 KiB
JavaScript
Raw Normal View History

2024-01-18 10:46:33 +08:00
const { defineConfig } = require('@vue/cli-service')
2023-11-10 18:57:18 +08:00
module.exports = defineConfig({
2024-04-19 18:15:23 +08:00
transpileDependencies: true,
devServer: {
proxy: {
'/tiaojie': {
2024-04-25 18:16:07 +08:00
// target: 'https://api.xayunmei.com/tiaojieapitest', // 后端服务器地址
target: 'http://121.40.189.20:6001',
2024-04-25 18:16:07 +08:00
changeOrigin: true, // 是否改变Origin头信息
secure : false,
pathRewrite: {
'^/tiaojie': '' // 将/api前缀重写为空字符串
},
},
2024-05-06 09:55:44 +08:00
'/tjformal': {
// target: 'https://api.xayunmei.com/tiaojieapi', // 后端服务器地址
target: 'http://121.40.189.20:7001',
2024-04-19 18:15:23 +08:00
changeOrigin: true, // 是否改变Origin头信息
secure : false,
pathRewrite: {
2024-05-06 09:55:44 +08:00
'^/tjformal': '' // 将/api前缀重写为空字符串
2024-04-19 18:15:23 +08:00
},
},
'/zhongcai': {
2024-04-25 18:16:07 +08:00
target: 'https://api.xayunmei.com/zhongcaiapitest', // 后端服务器地址
changeOrigin: true, // 是否改变Origin头信息
secure : false,
pathRewrite: {
'^/zhongcai': '' // 将/api前缀重写为空字符串
},
},
2024-05-14 17:37:20 +08:00
'/zhongcaiprod': {
2024-04-19 18:15:23 +08:00
target: 'https://api.xayunmei.com/zhongcaiapi', // 后端服务器地址
changeOrigin: true, // 是否改变Origin头信息
secure : false,
pathRewrite: {
'^/zhongcai': '' // 将/api前缀重写为空字符串
},
}
}
}
2024-01-18 10:46:33 +08:00
})