diff options
| author | Maze Winther <mazewinther@gmail.com> | 2025-08-02 17:28:01 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2025-08-02 17:28:01 +0200 |
| commit | c8980de41a64922eb27e3b43be1ba1dcfe5a274c (patch) | |
| tree | db5a9f6ef2e418a33964c9a3c24fd0265b915b04 /apps/web/src/lib/rate-limit.ts | |
| parent | ae54aff1a9762ceb9e42a534c29c584bbf18d6d5 (diff) | |
| download | opencut-c8980de41a64922eb27e3b43be1ba1dcfe5a274c.tar.gz | |
refactor: remove all waitlist-related code
Diffstat (limited to 'apps/web/src/lib/rate-limit.ts')
| -rw-r--r-- | apps/web/src/lib/rate-limit.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/web/src/lib/rate-limit.ts b/apps/web/src/lib/rate-limit.ts index e1996cf5..92f70805 100644 --- a/apps/web/src/lib/rate-limit.ts +++ b/apps/web/src/lib/rate-limit.ts @@ -8,9 +8,9 @@ const redis = new Redis({ token: env.UPSTASH_REDIS_REST_TOKEN, }); -export const waitlistRateLimit = new Ratelimit({ +export const baseRateLimit = new Ratelimit({ redis, - limiter: Ratelimit.slidingWindow(5, "1 m"), // 5 requests per minute + limiter: Ratelimit.slidingWindow(100, "1 m"), // 100 requests per minute analytics: true, - prefix: "waitlist-rate-limit", + prefix: "rate-limit", }); |
