Skip to content

Commit

Permalink
feat:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
druvkotwani committed Aug 7, 2024
1 parent fc2824b commit 0eb4caf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/lib/mongodb.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import mongoose from 'mongoose';

const MONGODB_URI = 'mongodb+srv://hackerdruv:[email protected]/leetcode?retryWrites=true&w=majority&appName=workflo';
const MONGODB_URI = process.env.NEXT_MONGO_URI;
if (!MONGODB_URI) {
throw new Error('Please define the MONGODB_URI environment variable inside .env.local');
}
Expand Down

0 comments on commit 0eb4caf

Please sign in to comment.