|
@@ -3,6 +3,8 @@ import mongoose from "mongoose";
|
|
|
const MONGODB_URI = process.env.MONGODB_URI;
|
|
|
const DB_NAME = process.env.MONGODB_DB_NAME || "mydatabase";
|
|
|
|
|
|
+console.log("DB_NAME", DB_NAME);
|
|
|
+
|
|
|
if (!MONGODB_URI) {
|
|
|
throw new Error(
|
|
|
"Please define the MONGODB_URI environment variable inside .env.local"
|