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.

fix rate limits

Steven Teycfe364aa4bc4
diff --git a/apps/web/lib/auth/workspace.ts b/apps/web/lib/auth/workspace.ts
index 4e0536fe28..fae669f42c 100644
--- a/apps/web/lib/auth/workspace.ts
+++ b/apps/web/lib/auth/workspace.ts
@@ -27,7 +27,7 @@ const RATE_LIMIT_FOR_SESSIONS = {
interval: "1 m",
},
analyticsApi: {
- limit: 8,
+ limit: 12,
interval: "1 s",
},
} as const;
diff --git a/packages/utils/src/constants/pricing.tsx b/packages/utils/src/constants/pricing.tsx
index d1e3c7e35e..e2a2bbad43 100644
--- a/packages/utils/src/constants/pricing.tsx
+++ b/packages/utils/src/constants/pricing.tsx
@@ -147,7 +147,7 @@ export const PLANS: PlanDetails[] = [
users: 1,
ai: 10,
api: 60,
- analyticsApi: 1, // per second
+ analyticsApi: 0, // analytics API is not available on the Free plan
retention: "30-day",
},
},