Flow: remove max_workers setting (#25349)
This was added back in #17880 to make CI pass for an unrelated change. This limits the max worker setting to CI environments as removing the setting completely still seems to break on CircleCI.
This commit is contained in:
parent
8ee4f52989
commit
abd7bcd8b2
|
@ -39,7 +39,7 @@
|
|||
untyped-type-import=error
|
||||
|
||||
[options]
|
||||
server.max_workers=4
|
||||
%CI_MAX_WORKERS%
|
||||
esproposal.class_static_fields=enable
|
||||
esproposal.class_instance_fields=enable
|
||||
esproposal.optional_chaining=enable
|
||||
|
|
|
@ -45,6 +45,11 @@ function writeConfig(renderer, rendererInfo, isServerSupported) {
|
|||
});
|
||||
|
||||
const config = configTemplate
|
||||
.replace(
|
||||
'%CI_MAX_WORKERS%\n',
|
||||
// On CI, we seem to need to limit workers.
|
||||
process.env.CI ? 'server.max_workers=4\n' : '',
|
||||
)
|
||||
.replace(
|
||||
'%REACT_RENDERER_FLOW_OPTIONS%',
|
||||
`
|
||||
|
|
Loading…
Reference in New Issue