Update scripts/serve.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user