vne A clever .env . Find it on npm ! It takes an .env file that looks like this: portDatabase = 55555 serviceApi = "jumble-of-letters-and-numbers" dev-api = "http://localhost:3000" prod-api = "https://api.domain.tld" dev-app = "http://localhost:3001" prod-app = "https://app.domain.tld" dev-marketing = "http://localhost:3002" prod-marketing = "https://domain.tld" And transforms it into an object that looks like this: { portDatabase : "55555" , serviceApi: "jumble-of-letters-and-numbers" , dev: { api: "http://localhost:3000" , app: "http://localhost:3001" , marketing: "http://localhost:3002" }, prod : { api : "https://api.domain.tld" , app: "https://app.domain.tld" , marketing: "https://domain.tld" } } This makes it easier to swap between development and production variables in your code. Example: return new Promise( (resolve, reject) => { request({ method: "POST" , url: process.env.NODE_ENV === "development" ? env.dev.api : env.prod.api, // BOOM body: {}, json: true }). then (body => { if (!body) return reject(body); resolve(body); }). catch (error => { resolve(error); }); });