fix. 코드 리팩토링

This commit is contained in:
clkim
2026-01-16 14:55:02 +09:00
parent c8cd7f780e
commit 40dc7f0e40
34 changed files with 238 additions and 369 deletions

View File

@@ -140,7 +140,6 @@ export default defineEventHandler(async event => {
}
const stoveApiServerBaseUrl = runtimeConfig.public.stoveApiUrlServer
const baseDomain = runtimeConfig.public.baseDomain
let gameDataResponse: GameDataResponse | null = null
let gameDataLangCodes: string[] | null = null
@@ -182,7 +181,10 @@ export default defineEventHandler(async event => {
// 1-1. 정적 파일 패스
if (isStaticFile(event.path)) return
// 1-2. 특정 경로 패스 (API, 리소스)
// 1-2. /inspection 패스
if (fullPath.includes('/inspection')) return
// 1-3. 특정 경로 패스 (API, 리소스)
if (shouldSkipPath(fullPath)) return
// 캐시 키 생성 (게임 ID 포함하여 충돌 방지)