Skip to content

Commit

Permalink
Don't use options object for listening on unix socket
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofandel authored Nov 12, 2024
1 parent 9563e9a commit 76660fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/presets/node/runtime/node-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 76660fc

Please sign in to comment.