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

Steven Teyc3cd963048a3
diff --git a/pages/api/edge/links/[key]/stats/[endpoint].ts b/pages/api/edge/links/[key]/stats/[endpoint].ts
index bc2455ae6d..24cc015b4b 100644
--- a/pages/api/edge/links/[key]/stats/[endpoint].ts
+++ b/pages/api/edge/links/[key]/stats/[endpoint].ts
@@ -29,7 +29,7 @@ export default async function handler(req: NextRequest) {
const ip = ipAddress(req) || LOCALHOST_IP;
const { success } = await ratelimit(
10,
- key === "github" ? "1 d" : "10 s",
+ key === "github" && endpoint !== "clicks" ? "1 d" : "10 s",
).limit(`${ip}:${domain}:${key}:${endpoint}`);
if (!success) {