Feat: Increase daily search rate limit to 35

This commit is contained in:
2026-02-25 12:24:29 -08:00
parent f6a1d61045
commit c02a615c9e

View File

@@ -128,7 +128,7 @@ export async function onRequest(context) {
})); }));
} }
if (count > 15) { if (count > 35) {
context.waitUntil(notify(env, { title: "Rate Limit Hit", message: `IP ${ip} hit limit for: ${query}`, tags: "warning,no_entry", priority: 2 })); context.waitUntil(notify(env, { title: "Rate Limit Hit", message: `IP ${ip} hit limit for: ${query}`, tags: "warning,no_entry", priority: 2 }));
return env.ASSETS.fetch(new Request(new URL("/limit.webp", url.origin))); return env.ASSETS.fetch(new Request(new URL("/limit.webp", url.origin)));
} }