mongoose .connect(process.env.MONGO_PROD_URI, { useNewUrlParser: true, useUnifiedTopology: true, useCreateIndex: true, }) .then(() => console.log("Database connected!")) .catch(err => console.log(err));