Switching based on node_env variable