Skip to content

Commit

Permalink
Update numWorkers for staticPathsWorker
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Feb 24, 2020
1 parent ce556fc commit c6ba21b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/server/next-dev-server.ts
Expand Up @@ -83,8 +83,8 @@ export default class DevServer extends Server {
this.staticPathsWorker = new Worker(
require.resolve('./static-paths-worker'),
{
numWorkers: 1,
maxRetries: 0,
numWorkers: this.nextConfig.experimental.cpus,
}
) as Worker & {
loadStaticPaths: typeof import('./static-paths-worker').loadStaticPaths
Expand Down

0 comments on commit c6ba21b

Please sign in to comment.