Skip to content

Commit

Permalink
fix(node-server): allow port as socket path (resolves unjs#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 authored and WinterYukky committed Nov 1, 2022
1 parent 226edde commit 755dcf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/entries/node-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const port = (destr(process.env.NITRO_PORT || process.env.PORT) || 3000) as numb
const host = process.env.NITRO_HOST || process.env.HOST

// @ts-ignore
const s = server.listen({ host, port }, (err) => {
const s = server.listen(port, host, (err) => {
if (err) {
console.error(err)
process.exit(1)
Expand Down

0 comments on commit 755dcf0

Please sign in to comment.