Sfoglia il codice sorgente

fix(dashboard): Increase rate limit for dev mode

Vite makes lots of requests
Michael Bromley 2 mesi fa
parent
commit
999d3e10e4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      packages/dashboard/plugin/dashboard.plugin.ts

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

@@ -240,7 +240,7 @@ export class DashboardPlugin implements NestModule {
     private createDefaultPage() {
         const limiter = rateLimit({
             windowMs: 60 * 1000,
-            limit: process.env.NODE_ENV === 'production' ? 500 : 2000,
+            limit: process.env.NODE_ENV === 'production' ? 500 : 20_000,
             standardHeaders: true,
             legacyHeaders: false,
         });