Skip to content

Commit

Permalink
dropped allowed requests to 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutlope committed Mar 5, 2023
1 parent f9d8d31 commit 1643cb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/api/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ interface ExtendedNextApiRequest extends NextApiRequest {
};
}

// Create a new ratelimiter, that allows 5 requests per 24 hours
// Create a new ratelimiter, that allows 3 requests per 24 hours
const ratelimit = redis
? new Ratelimit({
redis: redis,
limiter: Ratelimit.fixedWindow(5, "1440 m"),
limiter: Ratelimit.fixedWindow(3, "1440 m"),
analytics: true,
})
: undefined;
Expand Down

1 comment on commit 1643cb4

@vercel
Copy link

@vercel vercel bot commented on 1643cb4 Mar 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.