8000 updated · wpcodevo/trpc-react-node-mongodb@5702c56 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5702c56

Browse files
committed
updated
1 parent 9d2b5e7 commit 5702c56

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/server/src/utils/connectDB.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import path from 'path';
2-
require('dotenv').config({ path: path.join(__dirname, '../../.env') });
31
import mongoose from 'mongoose';
2+
import customConfig from '../config/default';
43

5-
const dbUrl = process.env.MONGODB_URI as string;
4+
const dbUrl = customConfig.dbUri;
65

76
const connectDB = async () => {
87
try {

0 commit comments

Comments
 (0)
0