Update scripts/serve.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Alexa Amundson
2025-11-24 11:57:43 -06:00
committed by GitHub
parent bfd2363635
commit f880635d3a

View File

@@ -10,6 +10,13 @@ const child = spawn('docusaurus', args, {
shell: true shell: true
}); });
process.on('SIGINT', () => {
child.kill('SIGINT');
});
process.on('SIGTERM', () => {
child.kill('SIGTERM');
});
child.on('exit', (code) => { child.on('exit', (code) => {
process.exit(code); process.exit(code);
}); });