Skip to content

Commit

Permalink
[feat] cloudfront 주소로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
sanghee0820 committed Nov 15, 2024
1 parent fc48411 commit ca8ac17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public String uploadBanner(MultipartFile banner) {

try {
amazonS3Client.putObject(bucketName, key, banner.getInputStream(), metadata);
return amazonS3Client.getUrl(bucketName, key).toString();
return "https://d4oqudml6s9ih.cloudfront.net/" + key;
} catch (Exception e) {
throw new RuntimeException("Failed to upload banner", e);
}
Expand Down

0 comments on commit ca8ac17

Please sign in to comment.