spr代理配置

This commit is contained in:
mzr 2025-03-13 19:32:49 +08:00
parent bb6e83b9a4
commit 9baae924a6
1 changed files with 6 additions and 0 deletions

View File

@ -83,6 +83,12 @@ module.exports = function(env, argv) {
},
stats: 'errors-only', // 开启报错提示
proxy: {
'/nccloud/resources/spr':{
target: configJSON.proxy,
pathRewrite:{
'^/nccloud/resources/spr':'/spr'
}
},
// 请求代理
'/nccloud': {
target: configJSON.proxy,