kbespalyi / freshplanet

ChatRoom Demo: Apollo Web Server with WebSockets + GraphQL
MIT License
0 stars 1 forks source link

process.env.PORT doesn't seem to be set #1

Open petergi opened 2 years ago

petergi commented 2 years ago

process.env.PORT doesn't seem to be set so when you run start you get:

🚀 Server ready at http://localhost:**undefined**/graphql Subscriptions ready at ws://localhost:undefined/graphql

But something like this (below) sets the port:

PORT=8080 npm start

🚀 Server ready at http://localhost:8080/graphql Subscriptions ready at ws://localhost:8080/graphql

kbespalyi commented 2 years ago

it is based on files [.env.local, .env.test, or .env.production] with key-values settings