From ede0bfe459dce2cfb92d97a840940c706cd9389c Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Sat, 14 Feb 2026 08:48:35 -0800 Subject: [PATCH] Feat: Increase daily search rate limit from 10 to 25 --- functions/[[path]].js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/[[path]].js b/functions/[[path]].js index 8de5b91..f639839 100644 --- a/functions/[[path]].js +++ b/functions/[[path]].js @@ -44,7 +44,7 @@ export async function onRequest(context) { const rateData = await env.DIRECT_IMG_RATE.get(rateKey, "json"); const count = rateData?.c || 0; - if (count >= 10) { + if (count >= 25) { context.waitUntil(notify(env, { title: "Rate Limit Hit", message: `IP ${ip} reached limit for: ${query}`, @@ -52,7 +52,7 @@ export async function onRequest(context) { priority: 2 })); return jsonResponse(429, { - error: "Daily search limit reached (10/day). Cached images remain available.", + error: "Daily search limit reached (25/day). Cached images remain available.", }); }