feat: 에러 추가 중

This commit is contained in:
“hyeonggkim”
2025-10-27 21:18:12 +09:00
parent 1f72069418
commit 470d8a62c7
9 changed files with 494 additions and 126 deletions

View File

@@ -23,7 +23,7 @@ export default defineNuxtRouteMiddleware(async (to, _from) => {
// 허용된 언어 코드 목록
const allowedLangCodes = gameDataStore.gameData.lang_codes || []
// 현재 언어가 허용된 언어 목록에 없으면 404로 리다이렉트
// 현재 언어가 허용된 언어 목록에 없으면 에러 페이지로 이동
if (currentLangCode && !allowedLangCodes.includes(currentLangCode)) {
throw createError({
statusCode: 404,