标签: node.js npm environment-variables
因此,我试图考虑一种选择特定npm的env变量的解决方案,例如:
process.env.LOCATIONS_HOST or process.env.SOME_OTHER_API_HOST Then I can write a function to get that like getSpecificHost(name) { return process.env.name }
谢谢!