Skip to content

Conversation

@Sangwook02
Copy link
Member

@Sangwook02 Sangwook02 commented Sep 14, 2025

🌱 관련 이슈

📌 작업 내용 및 특이사항

📝 참고사항

📚 기타

Summary by CodeRabbit

  • 신기능
    • 프로덕션·개발·로컬 환경별 이벤트 전용 URL을 추가하여, 사용자가 각 환경에서 올바른 이벤트 페이지로 안정적으로 이동할 수 있습니다. 환경에 따른 라우팅 정확도와 일관성이 향상됩니다.
  • Chores
    • 환경별 클라이언트 URL 구성에 이벤트 도메인을 포함하도록 업데이트했습니다. 이를 통해 딥링크 및 리디렉션 동작의 예측 가능성과 유지보수성이 개선되었습니다.

@Sangwook02 Sangwook02 self-assigned this Sep 14, 2025
@Sangwook02 Sangwook02 requested a review from a team as a code owner September 14, 2025 12:42
@coderabbitai
Copy link

coderabbitai bot commented Sep 14, 2025

📝 Walkthrough

Walkthrough

환경별 이벤트 클라이언트 URL 상수 3종(프로덕션/개발/로컬)을 추가하고, 각 환경의 클라이언트 URL 목록에 해당 이벤트 URL을 포함하도록 수정했습니다.

Changes

Cohort / File(s) Summary of changes
URL 상수 추가 및 목록 반영
src/main/java/com/gdschongik/gdsc/global/common/constant/UrlConstant.java
새 상수 추가: PROD_CLIENT_EVENT_URL, DEV_CLIENT_EVENT_URL, LOCAL_CLIENT_EVENT_URL; 각 환경별 *_CLIENT_URLS 목록에 이벤트 URL 포함

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested labels

✨ feature

Poem

꼬꼬닥, 키보드에 톡톡톡—
새 URL 싹을 심었죠 🌱
프로드, 개발, 로컬 줄 맞춰
이벤트 길도 환히 텄네!
쿵짝쿵, 토끼는 뛰며 말해:
“링크는 준비 완료! 출발!” 🐰✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed 제목 "feat: 이벤트 도메인 CORS 설정"은 PR의 주요 의도와 직접 관련되어 있으며, 이벤트 도메인 URL 상수 추가 및 이를 통한 CORS 관련 구성 변경을 간결하게 요약합니다. 제목은 불필요한 정보 없이 명확하고 팀원이 변경 내역을 빠르게 식별할 수 있습니다. 제공된 변경사항(이벤트 도메인 URL 추가 및 클라이언트 URL 목록에 포함)과도 일치합니다.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/1230-event-domain-cors

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot changed the title feat: 이벤트 도메인 CORS 설정 추가 feat: 이벤트 도메인 CORS 설정 Sep 14, 2025
@github-actions
Copy link

Job Summary for Gradle

Check Style and Test to Develop :: build-test
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
gdsc check 8.5 Build Scan published

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
src/main/java/com/gdschongik/gdsc/global/common/constant/UrlConstant.java (1)

42-47: DEV_CLIENT_URLS에 이벤트 URL 추가 LGTM

세 환경 모두 동형 변경이라 향후 누락 방지를 위해 간단한 테스트(각 환경 리스트에 이벤트 URL 포함 여부 검증) 추가를 권장합니다. 원하시면 테스트 초안 제공 가능합니다.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f8d21ad and ed8e674.

📒 Files selected for processing (1)
  • src/main/java/com/gdschongik/gdsc/global/common/constant/UrlConstant.java (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build-test
🔇 Additional comments (5)
src/main/java/com/gdschongik/gdsc/global/common/constant/UrlConstant.java (5)

22-22: DEV 이벤트 도메인 상수 추가 LGTM

개발 환경 허용 도메인 확장으로 적절합니다.


28-28: LOCAL 이벤트 도메인 상수 추가 LGTM

로컬 HTTPS 인증서 신뢰 및 도메인 해석(hosts/DNS)만 사전 점검해 주세요.


36-40: PROD_CLIENT_URLS에 이벤트 URL 추가 LGTM

리스트 일관성 유지되고, 누락 없이 반영되었습니다.


54-54: LOCAL_CLIENT_URLS에 이벤트 URL 추가 LGTM

DEV_AND_LOCAL 통합 리스트에도 자연스럽게 포함되므로 추가 작업 불필요합니다.


16-16: 확인 필요: PROD_CLIENT_EVENT_URL이 CORS 허용 목록에 포함되었는지 확인하세요

WebSecurityConfig의 corsConfigurationSource()가 setAllowedOriginPatterns(PROD_CLIENT_URLS)를 사용하며, 저장소에서 PROD_CLIENT_EVENT_URL을 직접 참조하는 곳은 발견되지 않았습니다. 이벤트 도메인을 실제로 허용하려면 PROD_CLIENT_URLS에 event.wawoo.dev를 추가하거나 CORS 설정에서 PROD_CLIENT_EVENT_URL을 직접 참조하도록 수정하세요. 운영 배포 전 event.wawoo.dev의 DNS/TLS 유효성 및 LB/프록시의 Origin 전달 여부도 확인하세요.

참고: src/main/java/com/gdschongik/gdsc/global/config/WebSecurityConfig.java (corsConfigurationSource(), ≈179–204)

Copy link
Member

@uwoobeat uwoobeat left a comment

Choose a reason for hiding this comment

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

lgtm

@Sangwook02
Copy link
Member Author

프론트쪽 병목 있을 것 같아서 일단 머지하겠습니다

@Sangwook02 Sangwook02 merged commit fa40247 into develop Sep 14, 2025
4 checks passed
@Sangwook02 Sangwook02 deleted the feature/1230-event-domain-cors branch September 14, 2025 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨ 이벤트 도메인 CORS 설정

3 participants