Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update API ratelimit to 600/min instead of 10/s

Steven Tey868dbf410b2b
diff --git a/apps/web/lib/auth/session.ts b/apps/web/lib/auth/session.ts
index b5da093f19..b6d8c16b78 100644
--- a/apps/web/lib/auth/session.ts
+++ b/apps/web/lib/auth/session.ts
@@ -62,8 +62,8 @@ export const withSession =
}
const { success, limit, reset, remaining } = await ratelimit(
- 10,
- "1 s",
+ 600,
+ "1 m",
).limit(apiKey);
headers = {
diff --git a/apps/web/lib/auth/workspace.ts b/apps/web/lib/auth/workspace.ts
index fa6d6610ca..73300b3404 100644
--- a/apps/web/lib/auth/workspace.ts
+++ b/apps/web/lib/auth/workspace.ts
@@ -157,8 +157,8 @@ export const withWorkspace = (
}
const { success, limit, reset, remaining } = await ratelimit(
- 10,
- "1 s",
+ 600,
+ "1 m",
).limit(apiKey);
headers = {