From 76660fc7c96a179255e246ff7577a905beba7b26 Mon Sep 17 00:00:00 2001 From: Adrien Foulon <6115458+Tofandel@users.noreply.github.com> Date: Tue, 12 Nov 2024 15:15:02 +0100 Subject: [PATCH] Don't use options object for listening on unix socket --- src/presets/node/runtime/node-server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/presets/node/runtime/node-server.ts b/src/presets/node/runtime/node-server.ts index a8737bda74..e0d48160c2 100644 --- a/src/presets/node/runtime/node-server.ts +++ b/src/presets/node/runtime/node-server.ts @@ -29,7 +29,7 @@ const host = process.env.NITRO_HOST || process.env.HOST; const path = process.env.NITRO_UNIX_SOCKET; // @ts-ignore -const listener = server.listen(path ? { path } : { port, host }, (err) => { +const listener = server.listen(path ? path : { port, host }, (err) => { if (err) { console.error(err); // eslint-disable-next-line unicorn/no-process-exit