Skip to content

Commit 538c57e

Browse files
committed
fix: 잘못 커밋된 개발환경 세팅 수정
1 parent 635b18f commit 538c57e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/configs/db.config.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ const poolConfig: pg.PoolConfig = {
1616
max: 10, // 최대 연결 수
1717
idleTimeoutMillis: 30000, // 연결 유휴 시간 (30초)
1818
connectionTimeoutMillis: 5000, // 연결 시간 초과 (5초)
19-
ssl: false,
20-
// ssl: {
21-
// rejectUnauthorized: false,
22-
// },
19+
// ssl: false,
20+
ssl: {
21+
rejectUnauthorized: false,
22+
},
2323
};
2424

25-
// if (process.env.NODE_ENV === 'production') {
26-
// poolConfig.ssl = {
27-
// rejectUnauthorized: false,
28-
// };
29-
// }
25+
if (process.env.NODE_ENV === 'production') {
26+
poolConfig.ssl = {
27+
rejectUnauthorized: false,
28+
};
29+
}
3030

3131
const pool = new Pool(poolConfig);
3232

0 commit comments

Comments
 (0)