Skip to content

Commit

Permalink
이미지 배포 디버깅 위한 Exception 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
JunBye committed Jan 13, 2025
1 parent 75944f4 commit b18c497
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ class ImageService() {
expiration: Date
): String {
// privateKey와 keyPairId는 GitHub Secrets에서 가져온 값이 자동으로 주입됨
if (privateKey.isBlank()) {
throw IllegalStateException("Private key is not configured or is blank")
}
if (keyPairId.isBlank()) {
throw IllegalStateException("Key Pair ID is not configured or is blank")
}
return createSignedUrl(domain, key, privateKey, keyPairId, expiration)
}

Expand Down

0 comments on commit b18c497

Please sign in to comment.