Skip to content

Commit

Permalink
Listen to 0.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Mar 3, 2024
1 parent a297f3a commit e2417c8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions apps/vite-ssr/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,12 @@ export async function createServer(

if (!isTest) {
createServer().then(async ({ app }) =>
app.listen(await getPort({ port: portNumbers(3000, 3100) }), () => {
console.log('Client Server: http://localhost:3000');
}),
app.listen(
await getPort({ port: portNumbers(3000, 3100) }),
'0.0.0.0',
() => {
console.log('Client Server: http://localhost:3000');
},
),
);
}

0 comments on commit e2417c8

Please sign in to comment.