Skip to content

Commit

Permalink
Bring back
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed Oct 21, 2024
1 parent fefebea commit 0de3d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/serve-cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export type AddCommand = (ctx: CLIContext, cli: CLI) => void;

// we dont use `Option.default()` in the command definitions because we want the CLI options to
// override the config file (with option defaults, config file will always be overwritten)
const maxAvailableFork = availableParallelism();
const maxAvailableFork = Math.max(availableParallelism() - 1, 1);
export const defaultOptions = {
fork: process.env.NODE_ENV === 'production' ? maxAvailableFork : 1,
host:
Expand Down

0 comments on commit 0de3d00

Please sign in to comment.