diff --git a/examples/with-mongodb-mongoose/utils/dbConnect.js b/examples/with-mongodb-mongoose/utils/dbConnect.js index 7942256bcf250..106cbc68cc559 100644 --- a/examples/with-mongodb-mongoose/utils/dbConnect.js +++ b/examples/with-mongodb-mongoose/utils/dbConnect.js @@ -1,6 +1,6 @@ import mongoose from 'mongoose' -const { MONGODB_URI } = process.env +const MONGODB_URI = process.env.MONGODB_URI if (!MONGODB_URI) { throw new Error(