fix. 공통 컴포넌트 수정

This commit is contained in:
clkim
2025-11-06 15:27:36 +09:00
parent f839a7be41
commit a5fc9b631d
7 changed files with 20 additions and 12 deletions

View File

@@ -27,13 +27,11 @@ export const getImageHost = (
const { staticUrl, assetsUrl } = config.public
const { imageType = 'game' } = options
const isDevelopment = process.env.NODE_ENV === 'development'
const isDevelopment = import.meta.dev
const isTypeGame = imageType === 'game'
// * [TODO] 수정 필요 : 게임별 이미지 로컬에 추가 필요.
if (isTypeGame) {
return `${staticUrl}${path}`
}
if (isTypeGame) return `${staticUrl}${path}`
// 개발 환경일 때는 루트 경로 생략
if (isDevelopment) return path