fix(auth): 비회원 보호 페이지 접근 시 로그인 리다이렉트 적용 - #109
Merged
Merged
Conversation
DEV_BYPASS를 제거하고 next-auth 기본 미들웨어로 교체하여 비회원이 보호 페이지(감정일기, 마이페이지 등) 접근 시 로그인 화면으로 리다이렉트되도록 수정. 홈(/), about, contact, join 등 공개 페이지는 matcher에서 제외하여 비회원도 접근 가능하도록 유지. Co-Authored-By: Claude <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
Changes미들웨어 단순화
예상 코드 리뷰 노력🎯 2 (Simple) | ⏱️ ~5 minutes 관련 가능성이 있는 PR
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
2 tasks
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
DEV_BYPASS제거 및next-auth기본 미들웨어로 교체/login으로 리다이렉트/), about, contact, join 등 공개 페이지는 matcher에서 제외하여 비회원 접근 유지변경 내용
DEV_BYPASS로직 제거 →export { default } from 'next-auth/middleware'로 단순화about,contact,join, 루트($)Test plan
/) 접근 → 정상 표시 확인/about,/terms,/privacy접근 → 정상 표시 확인🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes