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.

temporary exclusion

Steven Tey1d612a0abc63
diff --git a/apps/web/lib/auth/workspace.ts b/apps/web/lib/auth/workspace.ts
index 1d346dda1c..1be46e2a22 100644
--- a/apps/web/lib/auth/workspace.ts
+++ b/apps/web/lib/auth/workspace.ts
@@ -236,12 +236,18 @@ export const withWorkspace = (
// Rate limit checks for API keys
let limit = 0;
- let interval: `${number} s` | `${number} m` = isAnalytics
- ? "1 s"
- : "1 m";
+ let interval: `${number} s` | `${number} m` =
+ isAnalytics && token.projectId !== "cluh0o00y000211ly4lbh5zm4" // temporary exclusion
+ ? "1 s"
+ : "1 m";
const planLimit = getRatelimitForPlan(token.project?.plan || "free");
- limit = planLimit.limits[isAnalytics ? "analyticsApi" : "api"];
+ limit =
+ planLimit.limits[
+ isAnalytics && token.projectId !== "cluh0o00y000211ly4lbh5zm4" // temporary exclusion
+ ? "analyticsApi"
+ : "api"
+ ];
const { success, headers } = await rateLimitRequest({
identifier: `workspace:ratelimit:${hashedKey}`,