fix. 에러 수정, ip 필터 테스트코드

This commit is contained in:
clkim
2025-12-19 11:23:11 +09:00
parent 6d93bebd8b
commit 4d9b84a40f
12 changed files with 163 additions and 69 deletions

View File

@@ -186,6 +186,18 @@ export default defineEventHandler(async event => {
event.context.googleAnalyticsId = gameDataValue?.ga_code
console.log('🚀 ~ gameData response:', event.context.gameData)
if (process.env.NODE_ENV !== 'live') {
// 테스트용
setCookie(
event,
'DEBUG_INFO',
JSON.stringify({
clientIP: getTrueClientIp(event.node.req as any),
}),
{ maxAge: 60 }
)
}
// -------------------------------------------------------------------------------
// [Inspection Middleware]
// -------------------------------------------------------------------------------