From 715811d7fdb8f2293457449bf504a3932088ba33 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Thu, 16 Oct 2025 00:28:10 +0200 Subject: [PATCH] Commetn --- backend/api/src/helpers/endpoint.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/api/src/helpers/endpoint.ts b/backend/api/src/helpers/endpoint.ts index 4756909b..f817417a 100644 --- a/backend/api/src/helpers/endpoint.ts +++ b/backend/api/src/helpers/endpoint.ts @@ -177,8 +177,8 @@ export type APIHandler = ( // Simple in-memory fixed-window rate limiter keyed by auth uid (or IP if unauthenticated) // Not suitable for multi-instance deployments without a shared store, but provides basic protection. // Limits are configurable via env: -// API_RATE_LIMIT_PER_MIN_AUTHED (default 120) -// API_RATE_LIMIT_PER_MIN_UNAUTHED (default 30) +// API_RATE_LIMIT_PER_MIN_AUTHED +// API_RATE_LIMIT_PER_MIN_UNAUTHED // Endpoints can be exempted by adding their name to RATE_LIMIT_EXEMPT (comma-separated) const __rateLimitState: Map = new Map()