Skip to content

fastify.listen() behaves differently in newer version #5287

Closed Answered by royalswe
royalswe asked this question in Q&A
Discussion options

You must be logged in to vote

I solved it, path instead of port

  const PORT = process.env.port || 8080;
  fastify.listen({ path: PORT, host: '0.0.0.0' }, () =>
    console.log('SERVER LISTENING AT PORT : ' + PORT)
  );

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by royalswe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant