replaced app.get("env") with process.env.NODE_ENV