Skip to content

Commit bcde79e

Browse files
committed
Re-enable ratelimit analytics
Apparently the default is not `true` as it is stated in the JSDOC comment.
1 parent 50c8d58 commit bcde79e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/handler/ratelimit-middleware.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ try {
88
ratelimit = new Ratelimit({
99
redis: Redis.fromEnv(),
1010
limiter: Ratelimit.fixedWindow(10, `10 m`),
11+
analytics: true,
1112
});
1213
} catch (error) {
1314
if (process.env.UPSTASH_REDIS_REST_URL) {

0 commit comments

Comments
 (0)