text: const mongoose = require("mongoose");
  
  const connectDB = async () => {
    try {
      const conn = await mongoose.connect(
        "mongodb+srv://valentin1234:valentin1234@bugloggercluster.hae7i.mongodb.net/buglogger?retryWrites=true&w=majority",
        {
          useNewUrlParser: true,
          useCreateIndex: true,
          useUnifiedTopology: true,
        }
      );
  
      console.log("MongoDB Connected!");
    } catch (error) {
      console.log(error);
      process.exit(1);
    }
  };
  
  module.exports = connectDB;
  