From 170562340219a18493ad33697a8beda754081083 Mon Sep 17 00:00:00 2001 From: renatodellosso Date: Fri, 10 May 2024 22:43:37 -0400 Subject: [PATCH] Maybe fixed URI now? --- lib/MongoDB.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MongoDB.ts b/lib/MongoDB.ts index 34d5111c..a1f635ef 100644 --- a/lib/MongoDB.ts +++ b/lib/MongoDB.ts @@ -10,7 +10,7 @@ if (!process.env.MONGODB_URI) { console.error('Invalid/Missing environment variable: "MONGODB_URI"'); } -const uri = process.env.MONGODB_URI ?? ""; +const uri = process.env.MONGODB_URI ?? "mongodb://"; const options: MongoClientOptions = { maxPoolSize: 3 }; let client;