This commit is contained in:
Jason Koh 2025-05-27 14:51:31 -07:00
parent 12ac302a68
commit 50e36e67f0

View file

@ -6,9 +6,6 @@ const MONGO_DB_NAME = process.env.MONGO_DB_NAME;
if (!MONGO_URI) { if (!MONGO_URI) {
throw new Error('Please define the MONGO_URI environment variable'); throw new Error('Please define the MONGO_URI environment variable');
} }
if (!MONGO_DB_NAME) {
MONGO_DB_NAME = null
}
/** /**
* Global is used here to maintain a cached connection across hot reloads * Global is used here to maintain a cached connection across hot reloads