From 289224ad4ebe4479533629021792e9e42d6314e8 Mon Sep 17 00:00:00 2001 From: Rasmus Porsager Date: Tue, 1 Oct 2024 22:22:49 +0200 Subject: [PATCH] Fix sin start --- bin/start/index.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bin/start/index.js b/bin/start/index.js index 8760509..9db4d49 100755 --- a/bin/start/index.js +++ b/bin/start/index.js @@ -3,13 +3,13 @@ import url from 'node:url' process.env.NODE_ENV = 'production' -cp.fork( - url.fileURLToPath(new URL('node.js', import.meta.url)), - process.argv.slice(2), - { - execArgv: [ - '--import', - url.fileURLToPath(new URL('import.js', import.meta.url)) - ] +cp.spawnSync( + process.execPath, [ + '--import', + url.fileURLToPath(new URL('import.js', import.meta.url)), + url.fileURLToPath(new URL('node.js', import.meta.url)), + process.argv.slice(2) + ], { + stdio: 'inherit' } )