Skip to content

Conversation

@Seojegyeong
Copy link
Collaborator

🚨 관련 이슈

#31

✨ 변경사항

  • 🐞 BugFix Something isn't working
  • 💻 CrossBrowsing Browser compatibility
  • 🌏 Deploy Deploy
  • 🎨 Design Markup & styling
  • 📃 Docs Documentation writing and editing (README.md, etc.)
  • ✨ Feature Feature
  • 🔨 Refactor Code refactoring
  • ⚙️ Setting Development environment setup
  • ✅ Test Test related (storybook, jest, etc.)

✏️ 작업 내용

토큰 재발급 자동화 프로세스 구현

  1. 401 에러 감지
  2. 중복 요청 방지 (isRefreshing 를 먼저 체크)
    2-1. 재발급 진행 중이면 요청을 다시 보내지 않고 대기열에 넣어둠
    2-2. 재발급 처음 요청 시에는 재발급 시작함
  3. 무한 루프 차단(401에러 터진 요청이 재시도거나 재발급 요청 자체라면 로그아웃 처리)
  4. 서버로 재발급 요청
  5. 성공 시 토큰 갱신하고 대기열 재실행
  6. 실패 시 강제 로그아웃 처리(사용자 정보 지우고 로그인 화면으로 이동하게 함)

Vite 설정 개선 및 빌드 최적화

  1. 프로덕션으로 빌드할 때는 콘솔 제거
  2. 청크 크기 경고 한도 높임(500 -> 1MB)
  3. 코드 분할
    (1) react-vendor: 절대 안 바뀌는 핵심 (react, react-dom)
    (2) vendor: 가끔 바뀌는 나머지 라이브러리(axios, zustand)
    (3) index : 자주 바뀌는 내가 작성한 코드들

😅 미완성 작업

N/A

📢 논의 사항 및 참고 사항

N/A

💬 리뷰어 가이드 (P-Rules)
P1: 필수 반영 (Critical) - 버그 가능성, 컨벤션 위반. 해결 전 머지 불가.
P2: 적극 권장 (Recommended) - 더 나은 대안 제시. 가급적 반영 권장.
P3: 제안 (Suggestion) - 아이디어 공유. 반영 여부는 드라이버 자율.
P4: 단순 확인/칭찬 (Nit) - 사소한 오타, 칭찬 등 피드백.

@Seojegyeong Seojegyeong requested review from YermIm and jjjsun February 5, 2026 13:15
@Seojegyeong Seojegyeong self-assigned this Feb 5, 2026
@Seojegyeong Seojegyeong added ✨ Feature 기능 개발 🔨 Refactor 코드 리팩토링 labels Feb 5, 2026
@Seojegyeong Seojegyeong linked an issue Feb 5, 2026 that may be closed by this pull request
4 tasks
@Seojegyeong Seojegyeong added 📬 API 서버 API 통신 and removed ✨ Feature 기능 개발 labels Feb 5, 2026
@Seojegyeong Seojegyeong changed the title [Feature/#31] 토큰 재발급 API 연동 [Feature/#31] 토큰 재발급 API 연동 및 Vite 설정 개선 Feb 5, 2026
Copy link
Collaborator

@jjjsun jjjsun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P4:코드 리뷰달았습니다~! 고생하셨어요!!

Copy link
Collaborator

@jjjsun jjjsun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P4: 변경사항 확인했습니다!

@YermIm
Copy link
Collaborator

YermIm commented Feb 6, 2026

P4: 확인했습니다 고생하셨어요!!

@Seojegyeong Seojegyeong merged commit d41dd92 into develop Feb 6, 2026
1 check passed
@Seojegyeong Seojegyeong deleted the feature/#31 branch February 6, 2026 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📬 API 서버 API 통신 🔨 Refactor 코드 리팩토링

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨ [Feature] AccessToken 재발급(Reissue) API 연동

3 participants