防护:添加人数过多防护措施
This commit is contained in:
@@ -96,15 +96,6 @@ export default (appInfo: EggAppInfo) => {
|
||||
return path.replace(`/api/${env}/`, '/api/')
|
||||
}
|
||||
}
|
||||
httpProxy[`/web/${env}/`] = {
|
||||
target: domain,
|
||||
changeOrigin: true,
|
||||
secure: true,
|
||||
pathRewrite: function(path) {
|
||||
console.log('proxy', path, path.replace(`/web/${env}/`, '/web/'))
|
||||
return path.replace(`/web/${env}/`, '/web/')
|
||||
}
|
||||
}
|
||||
}
|
||||
config.proxy = httpProxy;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user