We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc2824b commit 0eb4cafCopy full SHA for 0eb4caf
client/src/lib/mongodb.js
@@ -1,6 +1,6 @@
1
import mongoose from 'mongoose';
2
3
-const MONGODB_URI = 'mongodb+srv://hackerdruv:TwE0oLsj8kd0ql78@workflo.skbz2gj.mongodb.net/leetcode?retryWrites=true&w=majority&appName=workflo';
+const MONGODB_URI = process.env.NEXT_MONGO_URI;
4
if (!MONGODB_URI) {
5
throw new Error('Please define the MONGODB_URI environment variable inside .env.local');
6
}
0 commit comments