Unverified Commit 5b9dd4c4 authored by Shu Ding's avatar Shu Ding Committed by GitHub

Add `WATCHPACK_WATCHER_LIMIT=20` (#51826)

Limit the number of Watchpack's watchers to 20 for the routing worker which runs Watchpack. By default this value is 2000 on macOS and 10000 on Windows, which can hold too much resource.
parent 913b365d
...@@ -210,6 +210,7 @@ export async function startServer({ ...@@ -210,6 +210,7 @@ export async function startServer({
...(process.env.NEXT_CPU_PROF ...(process.env.NEXT_CPU_PROF
? { __NEXT_PRIVATE_CPU_PROFILE: `CPU.router` } ? { __NEXT_PRIVATE_CPU_PROFILE: `CPU.router` }
: {}), : {}),
WATCHPACK_WATCHER_LIMIT: '20',
}, },
}, },
exposedMethods: ['initialize'], exposedMethods: ['initialize'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment