Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
개요
변경 사항
예상 코드 리뷰 난이도🎯 1 (간단함) | ⏱️ ~5분
시
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (1 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 |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.env.sample (1)
2-3: 정적 분석 도구에서 제안하는 선택적 개선 사항정적 분석 도구가 다음 사항을 제안하고 있습니다:
- 환경 변수를 알파벳 순으로 정렬 (VITE_API_BASE_URL, VITE_API_KEY, VITE_KAKAO_MAP_API_KEY 순서)
- 파일 끝에 빈 줄 추가
이러한 개선 사항은 선택적이며 코드의 기능에는 영향을 주지 않습니다.
필요하다면 다음 diff를 적용하세요:
+VITE_API_BASE_URL= +VITE_API_KEY= VITE_KAKAO_MAP_API_KEY= -VITE_API_BASE_URL= -VITE_API_KEY= +
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.env.sample(1 hunks)src/lib/api.ts(1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: KwonDeaGeun
Repo: KwonDeaGeun/WhatTheBus-Web PR: 21
File: src/App.tsx:16-23
Timestamp: 2025-09-22T04:45:54.455Z
Learning: KwonDeaGeun은 TypeScript에서 any 타입 사용을 피하고 더 타입 안전한 코드를 선호한다.
🪛 dotenv-linter (4.0.0)
.env.sample
[warning] 2-2: [UnorderedKey] The VITE_API_BASE_URL key should go before the VITE_KAKAO_MAP_API_KEY key
(UnorderedKey)
[warning] 3-3: [EndingBlankLine] No blank line at the end of the file
(EndingBlankLine)
[warning] 3-3: [UnorderedKey] The VITE_API_KEY key should go before the VITE_KAKAO_MAP_API_KEY key
(UnorderedKey)
🔇 Additional comments (1)
src/lib/api.ts (1)
7-9: 구현은 정확하지만 클라이언트 측 API 키 노출 확인 필요조건부 헤더 추가 구현이 올바르게 되어 있으며 타입 안전성도 유지되고 있습니다.
다만, Vite의
VITE_접두사가 붙은 환경 변수는 클라이언트 측 번들에 포함되어 브라우저에서 노출됩니다. API 키가 공개 API의 속도 제한을 위한 것이라면 문제없지만, 민감한 인증 정보라면 보안 위험이 될 수 있습니다.이것이 의도된 동작인지 확인해 주세요. 만약 민감한 키라면 서버 측 프록시를 통한 요청을 고려해야 합니다.
Summary by CodeRabbit
릴리스 노트