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.

avoid unintentional rate limits for SESSION

Steven Tey828e2f714211
diff --git a/apps/web/lib/auth/partner.ts b/apps/web/lib/auth/partner.ts
index eb1a059886..5aa6d458f7 100644
--- a/apps/web/lib/auth/partner.ts
+++ b/apps/web/lib/auth/partner.ts
@@ -35,11 +35,11 @@ interface WithPartnerProfileOptions {
const RATE_LIMIT_FOR_PARTNERS = {
api: {
- limit: 100,
+ limit: 600,
interval: "1 m",
},
analyticsApi: {
- limit: 6,
+ limit: 8,
interval: "1 s",
},
} as const;
diff --git a/apps/web/lib/auth/workspace.ts b/apps/web/lib/auth/workspace.ts
index 1be46e2a22..88dd3614f6 100644
--- a/apps/web/lib/auth/workspace.ts
+++ b/apps/web/lib/auth/workspace.ts
@@ -23,7 +23,7 @@ import { Session, getSession } from "./utils";
const RATE_LIMIT_FOR_SESSIONS = {
api: {
- limit: 100,
+ limit: 600,
interval: "1 m",
},
analyticsApi: {