refactor(cdn): CDN URL 변환 함수를 공통화한다

This commit is contained in:
2026-06-19 16:32:16 +09:00
parent 63c28f8504
commit d1fb87556e
2 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
package kr.co.vividnext.sodalive.v2.common.domain
fun String?.toCdnUrl(cloudFrontHost: String): String? {
if (isNullOrBlank()) return null
if (startsWith("https://") || startsWith("http://")) return this
return "$cloudFrontHost/$this"
}