Skip to content

Commit

Permalink
Allow enabling worker threads on dev server (#23027)
Browse files Browse the repository at this point in the history
Co-authored-by: JJ Kasper <[email protected]>
  • Loading branch information
afbarbaro and ijjk authored Jul 21, 2021
1 parent 1b67dc1 commit bdcb8b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/next/server/dev/next-dev-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export default class DevServer extends Server {
{
maxRetries: 1,
numWorkers: this.nextConfig.experimental.cpus,
enableWorkerThreads: this.nextConfig.experimental.workerThreads,
forkOptions: {
env: {
...process.env,
Expand Down

0 comments on commit bdcb8b0

Please sign in to comment.