Skip to content

Commit

Permalink
fix(razzle): make sure client dev server closes
Browse files Browse the repository at this point in the history
  • Loading branch information
fivethreeo committed Jan 22, 2021
1 parent 2d6a9bd commit f81e08a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/razzle/scripts/start.js
Expand Up @@ -133,6 +133,13 @@ function main() {
logger.error(err);
}
});

['SIGINT', 'SIGTERM'].forEach(sig => {
process.on(sig, () => {
clientDevServer.close();
});
});

resolve();
}
);
Expand Down

0 comments on commit f81e08a

Please sign in to comment.