Browse Source

chore(dashboard): Increase ratelimit for local dev

Vite makes a large number of requests locally in dev mode
Michael Bromley 3 months ago
parent
commit
1ec91d98d3
1 changed files with 1 additions and 1 deletions
  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 : 2000,
+            limit: process.env.NODE_ENV === 'production' ? 500 : 10_000,
             standardHeaders: true,
             legacyHeaders: false,
         });