-
Notifications
You must be signed in to change notification settings - Fork 26.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable worker_threads by default for firebase compatibility #9199
Merged
Timer
merged 11 commits into
vercel:canary
from
ctavan:improve-worker-count-configurability
Oct 29, 2019
Merged
Disable worker_threads by default for firebase compatibility #9199
Timer
merged 11 commits into
vercel:canary
from
ctavan:improve-worker-count-configurability
Oct 29, 2019
Commits on Oct 28, 2019
-
Pass config.experimental.cpus to export during build
Currently, there is no way of specifying the number of worker threads of `next export` when run as part of `next build`. I suggest a sane default should be to just use the same amount of workers that were used during the build process which currently seems to be configured through `config.experimental.cpus`. This setting is already respected in the two other places where jest-workers are in use: The TerserPlugin and the staticCheckWorkers in `next build`.
Configuration menu - View commit details
-
Copy full SHA for d4db464 - Browse repository at this point
Copy the full SHA d4db464View commit details -
Only enable worker threads if there is more than 1 worker
Multiple worker threads can cause problems when certain dependencies are being used, see e.g. vercel#7894 This patch allows disabling of worker threads by setting `config.experimental.cpus = 1`. The benefit of spawning 1 worker thread, if there is any at all, should very limited anyways, so the workload can just as well be processed in the main thread.
Configuration menu - View commit details
-
Copy full SHA for 1516361 - Browse repository at this point
Copy the full SHA 1516361View commit details -
Configuration menu - View commit details
-
Copy full SHA for b45c011 - Browse repository at this point
Copy the full SHA b45c011View commit details -
Configuration menu - View commit details
-
Copy full SHA for 684c8ff - Browse repository at this point
Copy the full SHA 684c8ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d30574 - Browse repository at this point
Copy the full SHA 6d30574View commit details -
Configuration menu - View commit details
-
Copy full SHA for d0979f3 - Browse repository at this point
Copy the full SHA d0979f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for d854702 - Browse repository at this point
Copy the full SHA d854702View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f953f2 - Browse repository at this point
Copy the full SHA 1f953f2View commit details -
Merge branch 'improve-worker-count-configurability' of github.com:cta…
…van/next.js into improve-worker-count-configurability
Configuration menu - View commit details
-
Copy full SHA for efc83a2 - Browse repository at this point
Copy the full SHA efc83a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 95747e1 - Browse repository at this point
Copy the full SHA 95747e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8cf0996 - Browse repository at this point
Copy the full SHA 8cf0996View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.