Skip to content

Commit

Permalink
chore(web): updates upstash rate limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
ixahmedxi committed Jul 31, 2023
1 parent 35edf79 commit dce1753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const redis = new Redis({

const ratelimit = new Ratelimit({
redis: redis,
limiter: Ratelimit.slidingWindow(5, '10 s'),
limiter: Ratelimit.slidingWindow(10, '3 s'),
});

async function rateLimitMiddleware(
Expand Down

0 comments on commit dce1753

Please sign in to comment.