Ver código fonte

fix(dashboard): Avoid 429 errors in dev mode

Michael Bromley 1 mês atrás
pai
commit
6d52887e89
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      packages/dashboard/plugin/dashboard.plugin.ts

+ 1 - 1
packages/dashboard/plugin/dashboard.plugin.ts

@@ -185,7 +185,7 @@ export class DashboardPlugin implements NestModule {
     private createStaticServer(dashboardPath: string) {
         const limiter = rateLimit({
             windowMs: 60 * 1000,
-            limit: process.env.NODE_ENV === 'production' ? 500 : 10_000,
+            limit: process.env.NODE_ENV === 'production' ? 500 : 1_000_000,
             standardHeaders: true,
             legacyHeaders: false,
         });