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.

edit

Steven Teyf44629b4d162
diff --git a/lib/middleware/link.ts b/lib/middleware/link.ts
index 2e8562acd4..2e5cc75114 100644
--- a/lib/middleware/link.ts
+++ b/lib/middleware/link.ts
@@ -24,7 +24,7 @@ export default async function LinkMiddleware(
const ip = ipAddress(req) || LOCALHOST_IP;
const { success } = await ratelimit(
10,
- key === "github" ? "120 s" : "10 s",
+ key === "github" ? "30 s" : "10 s",
).limit(ip);
if (!success) {
diff --git a/pages/api/edge/links/[key]/stats/[endpoint].ts b/pages/api/edge/links/[key]/stats/[endpoint].ts
index a2770c2b15..03d6c308fc 100644
--- a/pages/api/edge/links/[key]/stats/[endpoint].ts
+++ b/pages/api/edge/links/[key]/stats/[endpoint].ts
@@ -22,7 +22,7 @@ export default async function handler(req: NextRequest) {
const ip = ipAddress(req) || LOCALHOST_IP;
const { success } = await ratelimit(
10,
- key === "github" ? "120 s" : "10 s",
+ key === "github" ? "30 s" : "10 s",
).limit(ip);
if (!success) {
return new Response("Don't DDoS me pls 🥺", { status: 429 });