部署代理问题

This commit is contained in:
hanchaobo
2024-05-06 09:55:44 +08:00
parent 8abe87edda
commit fe6b8752d9
4 changed files with 23 additions and 23 deletions
+2 -2
View File
@@ -12,13 +12,13 @@ module.exports = defineConfig({
'^/tiaojie': '' // 将/api前缀重写为空字符串
},
},
'/tiaojieprod': {
'/tjformal': {
// target: 'https://api.xayunmei.com/tiaojieapi', // 后端服务器地址
target: 'http://121.40.189.20:7001',
changeOrigin: true, // 是否改变Origin头信息
secure : false,
pathRewrite: {
'^/tiaojie': '' // 将/api前缀重写为空字符串
'^/tjformal': '' // 将/api前缀重写为空字符串
},
},
'/zhongcai': {