process.env.MONGO = "..."; //it should be a string, trying hard coding it. Something similar to the code line below
mongoose.connect(process.env.MONGO || "someUrlHere", {...mongooseOptions});
I am trying to connect to my database, but it is not allowing me to do so because for some reason it throws the error above.Here is my code up to where I try and connect:I don't see what's wrong with my code. Please help.P.S. Yes, dotenv is working. I did a test earlier where I instantly logged one of my API keys and it worked. Also, Sentry connects.