fix. 공통 컴포넌트 수정
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user