Environment variables are one of the ways to deal with your application configuration. Generally speaking, it is even preferable in case you deploy your application into a Kubernetes cluster. In a NodeJS application, this is typically done via dotenv which reads variables from either environment itself or .env file.