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

Steven Tey8a24b87aa876
diff --git a/lib/middleware/link.ts b/lib/middleware/link.ts
index d2aa503b20..2e8562acd4 100644
--- a/lib/middleware/link.ts
+++ b/lib/middleware/link.ts
@@ -23,7 +23,7 @@ export default async function LinkMiddleware(
if (domain === "dub.sh") {
const ip = ipAddress(req) || LOCALHOST_IP;
const { success } = await ratelimit(
- 5,
+ 10,
key === "github" ? "120 s" : "10 s",
).limit(ip);
diff --git a/pages/api/edge/links/[key]/stats/[endpoint].ts b/pages/api/edge/links/[key]/stats/[endpoint].ts
index 237a1fb739..a2770c2b15 100644
--- a/pages/api/edge/links/[key]/stats/[endpoint].ts
+++ b/pages/api/edge/links/[key]/stats/[endpoint].ts
@@ -21,7 +21,7 @@ export default async function handler(req: NextRequest) {
if (domain === "dub.sh") {
const ip = ipAddress(req) || LOCALHOST_IP;
const { success } = await ratelimit(
- 5,
+ 10,
key === "github" ? "120 s" : "10 s",
).limit(ip);
if (!success) {