Skip to content

Commit

Permalink
Update upstash_ratelimit_callback.mdx (#6145)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ibkdir authored Jul 19, 2024
1 parent fc1b4dd commit 267dc5c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const ratelimit = new Ratelimit({
token: UPSTASH_REDIS_REST_TOKEN,
}),
// 10 requests per window, where window size is 60 seconds:
limiter: Ratelimit.fixedWindow(1, "60 s"),
limiter: Ratelimit.fixedWindow(10, "60 s"),
});

// create handler
Expand Down

0 comments on commit 267dc5c

Please sign in to comment.