Skip to content

Commit

Permalink
ar(fix) disable kv (cost)
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloreale committed Aug 31, 2024
1 parent a1c15c1 commit 406db92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import { next } from '@vercel/edge';
// import { kv } from '@vercel/kv';
// import { Ratelimit } from '@upstash/ratelimit';

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

export const config = {
matcher: ['/api/:path*'],
Expand Down

0 comments on commit 406db92

Please sign in to comment.