Skip to content

Commit cb08df4

Browse files
committed
fix: .env 파일 없는 CI 환경에서 config 로딩 실패 수정
1 parent ed3572e commit cb08df4

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/config/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ import dotenv from 'dotenv';
33

44
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
55

6-
const envFound = dotenv.config();
7-
if (envFound.error) {
8-
throw new Error(`Couldn't find .env file`);
9-
}
6+
dotenv.config();
107

118
const envSchema = z.object({
129
NODE_ENV: z.enum(['development', 'production', 'test']).default('development'),

0 commit comments

Comments
 (0)