refactor: gamedata 없을 때 error 페이지 노출 수정, 다국어 파일 경로 수정
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user