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:56 -06:00
committed by GitHub
parent a27867615b
commit 7ad80223fc

View File

@@ -10,6 +10,10 @@ const child = spawn('docusaurus', args, {
shell: true shell: true
}); });
child.on('error', (err) => {
console.error('Failed to start docusaurus:', err.message);
process.exit(1);
});
process.on('SIGINT', () => { process.on('SIGINT', () => {
child.kill('SIGINT'); child.kill('SIGINT');
}); });