Open petergi opened 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
it is based on files [.env.local, .env.test, or .env.production] with key-values settings
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