fix. config -> runtimeConfig 명칭 통일
This commit is contained in:
@@ -14,14 +14,14 @@ export default defineNuxtRouteMiddleware(async (to, _from) => {
|
||||
const currentLangCode = match ? match[1] : null
|
||||
|
||||
//현재 url에서 게임 도메인만 추출
|
||||
const currentDomain = window.location.hostname;
|
||||
const config = useRuntimeConfig()
|
||||
const currentDomain = window.location.hostname
|
||||
const runtimeConfig = useRuntimeConfig()
|
||||
const req: GameDataRequest = {
|
||||
gameDomain: `${currentDomain}`,
|
||||
langCode: `${currentLangCode}`,
|
||||
game_alias: '',
|
||||
lang_code: `${currentLangCode}`,
|
||||
baseApiUrl: `${config.public.stoveApiUrl}`,
|
||||
baseApiUrl: `${runtimeConfig.public.stoveApiUrl}`,
|
||||
gameId: '',
|
||||
}
|
||||
const { getGameDataExternal } = useGetGameDataExternal()
|
||||
@@ -30,7 +30,7 @@ export default defineNuxtRouteMiddleware(async (to, _from) => {
|
||||
const gameDataStore = useGameDataStore()
|
||||
const gameData = gameDataStore.gameData as GameDataValue
|
||||
const langCodes = gameData?.lang_codes
|
||||
|
||||
|
||||
// 허용된 언어 코드 목록
|
||||
const allowedLangCodes = langCodes || []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user