Skip to content

Commit

Permalink
Revert "Fastify server: Default to localhost (#8019)"
Browse files Browse the repository at this point in the history
This reverts commit 063cec8.
  • Loading branch information
jtoar committed May 24, 2023
1 parent 5f71b08 commit 9c2fde7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const startServer = ({
socket,
fastify,
}: HttpServerParams) => {
const host = 'localhost'
const host = process.env.NODE_ENV === 'production' ? '0.0.0.0' : '::'
const serverPort = socket ? parseInt(socket) : port

fastify.listen({ port: serverPort, host })
Expand Down

0 comments on commit 9c2fde7

Please sign in to comment.