Sometimes things vary from environment to environment. Like, we wear a tie to the office but try not to elsewhere. Similarly in Node.js, you might want configuration settings to change per environment. Some of these settings include IP address, port number, database configurations etc., that change from the development to production environment. The recommended approach for changing your app’s environment is by using the NODE_ENV environment variable.