Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli): respect SIGTERM and SIGINT exit codes in next build (vercel…
…#64871) This PR updates the SIGTERM and SIGINT exit codes to 143 and 130 respectively. These updated codes are what other tooling, such as Nx/Turborepo, expects when running commands that did not completely successfully due to receiving SIGTERM and SIGINT. For Nx, the SIGINT (e.g. `Ctrl+C`) causes a bad build cache. Both Nx and Turborepo will have bad cache when SIGTERM is received, which can happen in a CI environment if a job times out, runs out of memory, etc. I have a [repo here](https://github.com/jaysoo/next-cli-signals) that demonstrates the wrong behavior with Turborepo. By exiting with the wrong code, it can result in bad cache in CI or Docker. Closes: vercel#62906 --------- Co-authored-by: Sam Ko <[email protected]> Co-authored-by: Zack Tanner <[email protected]>
- Loading branch information