change from rack_env to node_env in api.js