Skip to content

Commit fee906e

Browse files
committed
debuggin db connection
1 parent b9e69fd commit fee906e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/server/src/databases/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
import { config } from '@config';
22
const { host, user, name, password } = config.db;
3+
4+
console.log('Database connection details:');
5+
console.log('Host:', host);
6+
console.log('User:', user);
7+
console.log('Database:', name);
8+
console.log('Password length:', password?.length);
9+
310
export const dbConnection = {
411
url: `mongodb://${user}:${encodeURIComponent(password)}@${host}/${name}?authSource=admin&retryWrites=true&w=majority`,
512
// For local development use this url

0 commit comments

Comments
 (0)