Skip to content

Commit 234e1d0

Browse files
committed
fix: 루트 디렉토리에서 .env를 읽도록 수정
1 parent ed577ee commit 234e1d0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/org/sopt/makers/global/util/EnvUtil.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
public final class EnvUtil {
1616
private static final String SLACK_WEBHOOK_PREFIX = "SLACK_WEBHOOK_";
1717
private static final String DISCORD_WEBHOOK_PREFIX = "DISCORD_WEBHOOK_";
18-
private static final Dotenv dotenv = Dotenv.configure()
19-
.directory("src/main/resources") // .env 파일 경로 지정
20-
.load();
18+
private static final Dotenv dotenv = Dotenv.configure().load();
2119

2220
/**
2321
* 서비스 유형에 맞는 웹훅 URL 반환

0 commit comments

Comments
 (0)