Skip to content

Commit

Permalink
Fix sin start
Browse files Browse the repository at this point in the history
  • Loading branch information
porsager committed Oct 1, 2024
1 parent 1c86ac3 commit 289224a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions bin/start/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
)

0 comments on commit 289224a

Please sign in to comment.