Skip to content

Commit 8ba3b2a

Browse files
committed
Fix launching a child Node.js process in start.js
1 parent c7b6cc9 commit 8ba3b2a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/start.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@ let node; /* Node.js server child process */
1616
function launch() {
1717
node = cp.spawn('node',
1818
[
19-
process.env.NODE_DEBUG ? '--inspect' : '',
20-
process.env.NODE_DEBUG ? '--no-lazy' : '',
19+
...(process.env.NODE_DEBUG === 'true' ? ['--inspect', '--no-lazy'] : []),
2120
'server.js',
2221
],
2322
{
2423
cwd: './build',
25-
stdio: ['ignore', 'inherit', 'inherit'],
24+
stdio: 'inherit',
2625
});
2726
}
2827

0 commit comments

Comments
 (0)