mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-31 07:11:33 +00:00
feat: disable reat limits on dev mode
This commit is contained in:
parent
d878d161c0
commit
edb7367ad3
@ -82,8 +82,8 @@ nunjucks.configure('views', {
|
||||
safe.set('view engine', 'njk')
|
||||
safe.enable('view cache')
|
||||
|
||||
// Configure rate limits
|
||||
if (Array.isArray(config.rateLimits) && config.rateLimits.length) {
|
||||
// Configure rate limits (disabled during development)
|
||||
if (!isDevMode && Array.isArray(config.rateLimits) && config.rateLimits.length) {
|
||||
for (const _rateLimit of config.rateLimits) {
|
||||
const limiter = rateLimit(_rateLimit.config)
|
||||
for (const route of _rateLimit.routes) {
|
||||
|
Loading…
Reference in New Issue
Block a user