Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
전체 요약Google OAuth 리다이렉트 URI를 환경(PROD/DEV)에 따라 조건부로 선택하도록 변경되었습니다. VITE_GOOGLE_REDIRECT_URI_PROD 또는 VITE_GOOGLE_REDIRECT_URI_DEV 중 PROD 환경 변수 기반으로 적절한 값을 사용하며, 선택된 리다이렉트 URI를 콘솔에 로깅합니다. 변경사항
예상 코드 리뷰 난이도🎯 1 (Trivial) | ⏱️ ~3 분 관련된 PR들
제안 라벨
제안 리뷰어
🐰 변경을 축하하는 시
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
✅ Storybook chromatic 배포 확인: |
There was a problem hiding this comment.
Actionable comments posted: 2
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
apps/client/src/pages/onBoarding/components/funnel/step/SocialLoginStep.tsx
🔇 Additional comments (1)
apps/client/src/pages/onBoarding/components/funnel/step/SocialLoginStep.tsx (1)
9-11: 환경별 리다이렉트 URI 분기 로직이 올바르게 구현되었습니다.
import.meta.env.PROD를 사용한 환경별 분기 처리가 Vite의 표준 API를 올바르게 따르고 있으며, 코드 패턴도 리포지토리의 다른 부분(firebase-config.ts, axiosInstance.ts)과 일치합니다. 유효성 검사 로직도 적절하게clientId와redirectUri모두 존재하는지 확인하고 있습니다.다만, 다음 사항들은 배포 시점에 확인해 주세요:
.env파일에VITE_GOOGLE_REDIRECT_URI_PROD와VITE_GOOGLE_REDIRECT_URI_DEV환경 변수가 정의되어 있는지 확인- Google Cloud Console에 두 리다이렉트 URI가 모두 등록되어 있는지 확인
| // const redirectUri = import.meta.env.VITE_GOOGLE_REDIRECT_URI; | ||
|
|
There was a problem hiding this comment.
🛠️ Refactor suggestion | 🟠 Major
주석 처리된 코드를 제거하세요.
주석 처리된 코드는 버전 관리 시스템에서 관리되므로 파일에 남겨둘 필요가 없습니다. 코드 가독성을 위해 제거하는 것이 좋습니다.
🔎 제안하는 수정 사항
- // const redirectUri = import.meta.env.VITE_GOOGLE_REDIRECT_URI;
-📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| // const redirectUri = import.meta.env.VITE_GOOGLE_REDIRECT_URI; |
🤖 Prompt for AI Agents
In apps/client/src/pages/onBoarding/components/funnel/step/SocialLoginStep.tsx
around lines 7-8, remove the commented-out line "// const redirectUri =
import.meta.env.VITE_GOOGLE_REDIRECT_URI;" from the file; delete the commented
code and save the file (then run the project's lint/format step if applicable to
ensure no trailing whitespace or formatting issues).
| ? import.meta.env.VITE_GOOGLE_REDIRECT_URI_PROD | ||
| : import.meta.env.VITE_GOOGLE_REDIRECT_URI_DEV; | ||
|
|
||
| console.log('redirectUri:', redirectUri); |
There was a problem hiding this comment.
프로덕션 환경에서 실행되는 console.log를 제거하세요.
OAuth 설정 정보인 리다이렉트 URI를 콘솔에 출력하는 것은 보안상 권장되지 않습니다. 프로덕션 환경에서 설정 정보가 노출될 수 있으며, 이는 잠재적인 보안 위험을 초래할 수 있습니다.
🔎 제안하는 수정 사항
옵션 1 (권장): console.log 제거
- console.log('redirectUri:', redirectUri);
-옵션 2: 개발 환경에서만 로깅
- console.log('redirectUri:', redirectUri);
+ if (import.meta.env.DEV) {
+ console.log('redirectUri:', redirectUri);
+ }📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| console.log('redirectUri:', redirectUri); |
🤖 Prompt for AI Agents
In apps/client/src/pages/onBoarding/components/funnel/step/SocialLoginStep.tsx
around line 13, remove the console.log('redirectUri:', redirectUri) that prints
OAuth redirect URIs to the console; either delete the line entirely (preferred)
or replace it with environment-gated logging so it only runs when
process.env.NODE_ENV === 'development' (e.g., use a conditional guard) to avoid
leaking sensitive configuration in production.
📌 Related Issues
📄 Tasks
⭐ PR Point (To Reviewer)
📷 Screenshot
Summary by CodeRabbit
릴리스 노트
Bug Fixes
Chores
✏️ Tip: You can customize this high-level summary in your review settings.