mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-30 23:01:34 +00:00
feat: warn when deprecated rateLimits is in config
This commit is contained in:
parent
f40c9e0287
commit
f0856239c3
@ -70,6 +70,9 @@ if (Array.isArray(config.rateLimiters)) {
|
||||
safe.use(route, rateLimiterInstance.middleware)
|
||||
}
|
||||
}
|
||||
} else if (config.rateLimits) {
|
||||
logger.error('Config option "rateLimits" is deprecated.')
|
||||
logger.error('Please consult the provided sample file for the new option "rateLimiters".')
|
||||
}
|
||||
|
||||
// Helmet security headers
|
||||
|
Loading…
Reference in New Issue
Block a user