Skip to content

Commit 1d4c531

Browse files
committed
add default
1 parent 948fd11 commit 1d4c531

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/Options/Definitions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ module.exports.RateLimitOptions = {
690690
zone: {
691691
env: 'PARSE_SERVER_RATE_LIMIT_ZONE',
692692
help:
693-
'The type of rate limit to apply. The following types are supported:<ul><li>`global`: rate limit based on the number of requests made by all users</li><li>`ip`: rate limit based on the IP address of the request</li><li>`user`: rate limit based on the user ID of the request</li><li>`session`: rate limit based on the session token of the request</li></ul>',
693+
'The type of rate limit to apply. The following types are supported:<ul><li>`global`: rate limit based on the number of requests made by all users</li><li>`ip`: rate limit based on the IP address of the request</li><li>`user`: rate limit based on the user ID of the request</li><li>`session`: rate limit based on the session token of the request</li></ul>Default is `ip`.',
694694
default: 'ip',
695695
},
696696
};

src/Options/docs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Options/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ export interface RateLimitOptions {
377377
<li>`user`: rate limit based on the user ID of the request</li>
378378
<li>`session`: rate limit based on the session token of the request</li>
379379
</ul>
380+
Default is `ip`.
380381
:DEFAULT: ip */
381382
zone: ?string;
382383
}

0 commit comments

Comments
 (0)