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.

changed rate limits

Steven Tey64ce37391d19
diff --git a/app/api/unsplash/search/route.ts b/app/api/unsplash/search/route.ts
index 05d59e7867..9508d9484e 100644
--- a/app/api/unsplash/search/route.ts
+++ b/app/api/unsplash/search/route.ts
@@ -13,7 +13,7 @@ export async function GET(req: Request) {
if (!query) return new Response("Missing query", { status: 400 });
const ip = ipAddress(req) || LOCALHOST_IP;
- const { success } = await ratelimit(5, "10 s").limit(ip);
+ const { success } = await ratelimit(10, "10 s").limit(ip);
if (!success) {
return new Response("Don't DDoS me pls 🥺", { status: 429 });
}