Refactor start and dev commands. Start in child processes. Handle errors better
This commit is contained in:
Vendored
+6
-6
@@ -48,9 +48,9 @@ export default async function bunextInit() {
|
||||
cron();
|
||||
}
|
||||
}
|
||||
process.on("exit", (code) => {
|
||||
Bun.spawn([process.execPath, ...process.argv.slice(1)], {
|
||||
stdio: ["inherit", "inherit", "inherit"],
|
||||
env: process.env,
|
||||
});
|
||||
});
|
||||
// process.on("exit", (code) => {
|
||||
// Bun.spawn([process.execPath, ...process.argv.slice(1)], {
|
||||
// stdio: ["inherit", "inherit", "inherit"],
|
||||
// env: process.env,
|
||||
// });
|
||||
// });
|
||||
|
||||
Reference in New Issue
Block a user