fix logic

This commit is contained in:
Maidul Islam
2025-04-09 20:55:41 -04:00
parent 34cf47a5eb
commit 2084539f61

View File

@@ -113,7 +113,7 @@ export const main = async ({ db, hsmModule, auditLogDb, smtp, logger, queue, key
await server.register(fastifyErrHandler);
// Rate limiters and security headers
if (appCfg.isProductionMode && !appCfg.isCloud) {
if (appCfg.isProductionMode && appCfg.isCloud) {
await server.register<FastifyRateLimitOptions>(ratelimiter, globalRateLimiterCfg());
}