refactor: gamedata 없을 때 error 페이지 노출 수정, 다국어 파일 경로 수정

This commit is contained in:
“hyeonggkim”
2025-11-19 20:56:41 +09:00
parent 1726ddb15d
commit f29b84e8e1
18 changed files with 230 additions and 167 deletions

View File

@@ -59,6 +59,16 @@ export default defineNuxtRouteMiddleware(async (to, _from) => {
to.path.includes('/error') ||
to.path.includes('/inspection')
) {
console.log("🚀 ~ init.route.global error 페이지는 API 호출하지 않음")
showError(
createError({
statusCode: 500,
statusMessage:
'Internal Server Error',
fatal: false, // 즉시 에러 페이지로
data: { reason: 'post-not-found' },
})
)
return
}