mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-06 21:07:47 +00:00
[cli] Prevent recursion of vercel build and vercel dev (#6960)
* Prevent infinite recursion of vercel build and dev * Improved text * Improved the text further * Add tests * Debug test * Add debug log * Debug test * debug test * Debug test * Fix test * Debug tests * Debug test * Remove only from tests * Add error documentation * Improved docs * Fix other test * Fixed links to error docs * Remove legacy error page * Use nicer error links Co-authored-by: Leo Lamprecht <leo@vercel.com>
This commit is contained in:
committed by
GitHub
parent
507a5de3cd
commit
6248139281
@@ -2161,7 +2161,10 @@ export default class DevServer {
|
||||
process.stdout.write(data.replace(proxyPort, devPort));
|
||||
});
|
||||
|
||||
p.on('exit', () => {
|
||||
p.on('exit', (code: number) => {
|
||||
if (code > 0) {
|
||||
process.exit(code);
|
||||
}
|
||||
this.devProcessPort = undefined;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user