Merged
Conversation
- 모든 API 라우트를 Errors/successResponse/errorResponse 표준 패턴으로 통일 - withCache() 유틸 추가 (members 60s, ranking 30s Cache-Control) - sonner 토스트 시스템 통합 (inline 토스트 제거) - sanitizeTiptapContent()로 게시판 XSS 방어 (javascript:/data:/vbscript: 차단) - isSafeUrl() SSRF 방어 (posts/manual, curation/crawl) - CSP 헤더 설정 (next.config.js) - 에러 바운더리 추가 (user/admin error.tsx) - 커스텀 404 페이지 추가 - 미인증 API 엔드포인트 수정 (rounds, rounds/[id]) - posts/page.tsx 중복 fetchPosts를 useCallback으로 통합 Co-Authored-By: Claude <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
API 표준화 (16개 라우트)
api/auth/me,api/auth/logoutErrors.unauthorized()+successResponse()적용api/profile/route,edit,withdrawErrors.*()통일api/members/route,[id]withCache(successResponse(...), 60)적용api/posts/route,manualErrors.unauthorized()+ SSRF 체크 추가api/ranking/routewithCache(successResponse(...), 30)적용api/scores/routeErrors.unauthorized()적용api/rounds/route,[id]api/admin/fines/route,[id]errorResponse()통일api/admin/settings/routeerrorResponse()통일api/board/route,[id]sanitizeTiptapContent()XSS 방어 적용보안 강화
lib/sanitize.tssanitizeTiptapContent()추가 (javascript:/data:/vbscript: 링크 제거)lib/rss-detect.tsisSafeUrl()export로 변경 (SSRF 방어 재사용)api/admin/curation/crawl/route.tsisSafeUrl()) 적용api/posts/manual/route.tsnext.config.js에러 처리 & UX
lib/api-error.tswithCache()유틸 추가app/layout.tsx<Toaster />추가app/not-found.tsxapp/(user)/error.tsxapp/(admin)/error.tsxadmin/fines/page.tsxtoast.success/errorprofile/edit/page.tsxboard/write,board/[id]/editposts/page.tsxfetchPosts→useCallback통합문서
CLAUDE.mddocs/26-03-06-patterns.mddocs/ARCHITECTURE.mdDesign Decisions
withCache()scope 기본값privatesanitizeTiptapContent()서버사이드 적용unsafe-inline포함Test Plan
🤖 Generated with Claude Code