switching config NODE_ENV logic