Skip to content

Commit 235755b

Browse files
committed
fix: process.send is undefined
1 parent 8bf8cc7 commit 235755b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/core/server.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,15 @@ export async function startServer (options: StartServerOptions = {}) {
5050
ctx.serverProcess.kill()
5151
throw lastError || new Error('Timeout waiting for dev server!')
5252
} else {
53-
ctx.serverProcess = execa('node', [
54-
resolve(ctx.nuxt!.options.nitro.output!.dir!, 'server/index.mjs')
55-
], {
53+
ctx.serverProcess = execaNode(resolve(ctx.nuxt!.options.nitro.output!.dir!, 'server/index.mjs'), {
5654
stdio: 'inherit',
5755
env: {
5856
...process.env,
5957
PORT: String(port),
6058
HOST: host,
6159
NODE_ENV: 'test',
62-
...options.env
63-
}
60+
...options.env,
61+
},
6462
})
6563
await waitForPort(port, { retries: 20, host })
6664
}

0 commit comments

Comments
 (0)