File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ const maxMultiple =
144
144
! IS_PROD || process . env . PLAYWRIGHT_TEST_BASE_URL ? 10_000 : 1
145
145
const rateLimitDefault = {
146
146
windowMs : 60 * 1000 ,
147
- max : 1000 * maxMultiple ,
147
+ limit : 1000 * maxMultiple ,
148
148
standardHeaders : true ,
149
149
legacyHeaders : false ,
150
150
validate : { trustProxy : false } ,
@@ -160,13 +160,13 @@ const rateLimitDefault = {
160
160
const strongestRateLimit = rateLimit ( {
161
161
...rateLimitDefault ,
162
162
windowMs : 60 * 1000 ,
163
- max : 10 * maxMultiple ,
163
+ limit : 10 * maxMultiple ,
164
164
} )
165
165
166
166
const strongRateLimit = rateLimit ( {
167
167
...rateLimitDefault ,
168
168
windowMs : 60 * 1000 ,
169
- max : 100 * maxMultiple ,
169
+ limit : 100 * maxMultiple ,
170
170
} )
171
171
172
172
const generalRateLimit = rateLimit ( rateLimitDefault )
You can’t perform that action at this time.
0 commit comments