import mongoose from "mongoose";

export const connectDB = async ()=>{
    try{
        const conn= await mongoose.connect(process.env.MONGO_URL);
        console.log('MongoDB connected successfully')
    } catch (err){
        console.log(err);
        process.exit(1);
    }

}
