Environment variables are a fundamental part of Node development, but for some reason I never bothered with learning how to properly use them.
Maybe because they are called “Environment Variables.”
Just the words “Environment Variable” trigger a PTSD-laced flashback in which I am trying to add the correct path to the Java Home directory on Windows. Does it go in PATH or JAVA_HOME or both? Do I need to end it with a semicolon? WHY AM I USING JAVA?
In Node, environment variables can be global (like on Windows), but are often used with a specific process that you want to run. For instance, if you had a web application, you might have environment variables that define:
... read the whole story at medium.freecodecamp.org.