changed devMode variable to process.env.node_env