You'll want to use NODE_CONFIG_ENV to avoid setting NODE_ENV to a value that may confuse the rest of your stack. NODE_ENV is only utilized if NODE_CONFIG_ENV is undefined.