Skip to content

Commit

Permalink
[DDING-000] Image CDN URL 구성요소 수정 (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
KoSeonJe authored Jan 14, 2025
1 parent ea52d7d commit f2c527e
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,7 @@ public UploadedFileUrlQuery getUploadedFileUrl(String key) {
String region = amazonS3Client.getRegionName();
String[] splitKey = key.split("/");
String originUrl = String.format(S3_URL_FORMAT, inputBucket, region) + key;
String cdnUrl = FILE_CDN_URL +
splitKey[splitKey.length - 3] + "/" +
splitKey[splitKey.length - 2] + "/" +
splitKey[splitKey.length - 1];
String cdnUrl = FILE_CDN_URL + key;
return new UploadedFileUrlQuery(splitKey[splitKey.length - 1], originUrl, cdnUrl);
}

Expand Down

0 comments on commit f2c527e

Please sign in to comment.