fix. 다국어 dataResourcesUrl경로 env로 수정
This commit is contained in:
2
.env.dev
2
.env.dev
@@ -3,6 +3,8 @@ BASE_DOMAIN='.onstove.com'
|
||||
|
||||
# URLS ##############################################################################
|
||||
STATIC_URL='https://static-pubcomm.gate8.com'
|
||||
ASSETS_URL='https://static-pubcomm.gate8.com/dev/templates/brand'
|
||||
DATA_RESOURCE_URL='https://static-pubcomm.gate8.com/dev/test'
|
||||
|
||||
# STOVE #############################################################################
|
||||
# STOVE - API Url
|
||||
|
||||
@@ -3,6 +3,8 @@ BASE_DOMAIN='.onstove.com'
|
||||
|
||||
# URLS ##############################################################################
|
||||
STATIC_URL='https://static-pubcomm.onstove.com'
|
||||
ASSETS_URL='https://static-pubcomm.onstove.com/live/templates/brand'
|
||||
DATA_RESOURCE_URL='https://static-pubcomm.onstove.com/live/test'
|
||||
|
||||
# STOVE #############################################################################
|
||||
# STOVE - API Url
|
||||
|
||||
2
.env.qa
2
.env.qa
@@ -3,6 +3,8 @@ BASE_DOMAIN='.onstove.com'
|
||||
|
||||
# URLS ##############################################################################
|
||||
STATIC_URL='https://static-pubcomm.gate8.com'
|
||||
ASSETS_URL='https://static-pubcomm.gate8.com/qa/templates/brand'
|
||||
DATA_RESOURCE_URL='https://static-pubcomm.gate8.com/qa/test'
|
||||
|
||||
# STOVE #############################################################################
|
||||
# STOVE - API Url
|
||||
|
||||
@@ -3,6 +3,8 @@ BASE_DOMAIN='.gate8.com'
|
||||
|
||||
# URLS ##############################################################################
|
||||
STATIC_URL='https://static-pubcomm.gate8.com'
|
||||
ASSETS_URL='https://static-pubcomm.gate8.com/sandbox/templates/brand'
|
||||
DATA_RESOURCE_URL='https://static-pubcomm.gate8.com/sandbox/test'
|
||||
|
||||
# STOVE #############################################################################
|
||||
# STOVE - API Url
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
@apply relative pt-[32px] pb-[80px] px-[20px] sm:px-[40px] md:pt-[64px] md:pb-[200px] bg-[#F0F0F0];
|
||||
}
|
||||
.section-static {
|
||||
@apply mx-auto max-w-[684px] md:max-w-[944px] lg:max-w-[1300px];
|
||||
@apply mx-auto lg:max-w-[1300px];
|
||||
}
|
||||
.section-static + .section-static {
|
||||
@apply mt-[80px] md:mt-[100px];
|
||||
|
||||
@@ -15,14 +15,12 @@ const props = defineProps<Props>()
|
||||
|
||||
// Configuration
|
||||
const runtimeConfig = useRuntimeConfig()
|
||||
const runType = runtimeConfig.public.runType
|
||||
const staticUrl = runtimeConfig.public.staticUrl
|
||||
const multilingualBaseApiUrl = `${staticUrl}/${runType}/test`
|
||||
const dataResourcesUrl = runtimeConfig.public.dataResourcesUrl
|
||||
const multilingualFileName = 'test_homepage_brand_download.json'
|
||||
|
||||
// Multilingual
|
||||
const resultGetMultilingual = await useGetMultilingual({
|
||||
baseApiUrl: multilingualBaseApiUrl,
|
||||
baseApiUrl: dataResourcesUrl,
|
||||
fileName: multilingualFileName,
|
||||
})
|
||||
const { tm, locale }: any = useI18n({
|
||||
@@ -158,7 +156,7 @@ const handleMoveFocus = (target: 'pc' | 'mobile') => {
|
||||
padding: { left: 0, right: 0 },
|
||||
},
|
||||
}"
|
||||
class="overflow-hidden w-[100vw] px-[20px] ml-[-20px] mt-[16px] sm:px-[40px] sm:ml-[-40px] md:w-full md:px-0 md:mt-[24px] md:ml-0"
|
||||
class="overflow-hidden min-w-[320px] w-[100vw] px-[20px] ml-[-20px] sm:px-[40px] sm:ml-[-40px] md:w-full md:px-0 md:ml-0"
|
||||
>
|
||||
<SplideSlide
|
||||
v-for="platform in platformList"
|
||||
|
||||
@@ -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}`
|
||||
}
|
||||
|
||||
@@ -79,6 +79,8 @@ export default defineNuxtConfig({
|
||||
baseDomain: process.env.BASE_DOMAIN,
|
||||
|
||||
staticUrl: process.env.STATIC_URL,
|
||||
assetsUrl: process.env.ASSETS_URL,
|
||||
dataResourcesUrl: process.env.DATA_RESOURCE_URL,
|
||||
|
||||
stoveApiUrl: process.env.STOVE_API_URL,
|
||||
stoveApiUrlServer: process.env.STOVE_API_URL_SERVERL,
|
||||
|
||||
Reference in New Issue
Block a user