fix: Rate limit feature is incompatible with Node 14 (#8578)
This commit is contained in:
@@ -512,7 +512,7 @@ export const addRateLimit = (route, config, cloud) => {
|
||||
},
|
||||
});
|
||||
}
|
||||
let transformPath = route.requestPath.replaceAll('/*', '/(.*)');
|
||||
let transformPath = route.requestPath.split('/*').join('/(.*)');
|
||||
if (transformPath === '*') {
|
||||
transformPath = '(.*)';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user