fix. 다국어 dataResourcesUrl경로 env로 수정

This commit is contained in:
clkim
2025-11-03 11:17:27 +09:00
parent 77e0724c2b
commit 4847db48c6
8 changed files with 16 additions and 10 deletions

View File

@@ -24,8 +24,8 @@ export const getImageHost = (
if (/^(https?:\/\/|www\.)/.test(path)) return path
const config = useRuntimeConfig()
const { staticUrl, assetsUrl } = config.public
const { imageType = 'game' } = options
const { staticUrl, runType } = config.public
const isDevelopment = process.env.NODE_ENV === 'development'
const isCommon = imageType === 'common'
@@ -39,9 +39,7 @@ export const getImageHost = (
if (isDevelopment) return path
// 공통/게임 여부에 따른 경로 결정
const basePath = isCommon
? `${staticUrl}/${runType}/templates/brand`
: staticUrl
const basePath = isCommon ? assetsUrl : staticUrl
return `${basePath}${path}`
}