8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d2b5e7 commit 5702c56Copy full SHA for 5702c56
packages/server/src/utils/connectDB.ts
@@ -1,8 +1,7 @@
1
-import path from 'path';
2
-require('dotenv').config({ path: path.join(__dirname, '../../.env') });
3
import mongoose from 'mongoose';
+import customConfig from '../config/default';
4
5
-const dbUrl = process.env.MONGODB_URI as string;
+const dbUrl = customConfig.dbUri;
6
7
const connectDB = async () => {
8
try {
0 commit comments