Skip to content

Commit

Permalink
chore: dbConfig 업데이트
Browse files Browse the repository at this point in the history
  • Loading branch information
webplusangels committed Jan 7, 2025
1 parent 43ff76d commit a3ac5bc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion config/dbConfig.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
const mysql = require('mysql2/promise');
require('dotenv').config();
const dotenv = require('dotenv');

const APP_ENV = process.env.APP_ENV || 'development';

if (APP_ENV === 'development') {
dotenv.config();
}

// 환경 변수가 설정되었는지 확인
if (
Expand Down

0 comments on commit a3ac5bc

Please sign in to comment.