Skip to content

Instantly share code, notes, and snippets.

@yebt
Created September 30, 2022 20:45
Show Gist options
  • Save yebt/4cc19addb66642e640977baedee2cf10 to your computer and use it in GitHub Desktop.
Save yebt/4cc19addb66642e640977baedee2cf10 to your computer and use it in GitHub Desktop.

Call node with env vars

PORT=3001 node index.js 
const { PORT = 0 } = procsess.env 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment