Skip to content

feat : 프론트 배포 주소 추가#46

Merged
oroi2009 merged 1 commit into
mainfrom
fix/#11
May 11, 2026
Merged

feat : 프론트 배포 주소 추가#46
oroi2009 merged 1 commit into
mainfrom
fix/#11

Conversation

@oroi2009

Copy link
Copy Markdown
Contributor

🔍 관련 이슈


✅ 작업 분류

  • 버그 수정
  • 신규 기능
  • 프로젝트 구조 변경
  • 코드 리팩토링
  • 기능 수정

✨ 작업 내용

  • 프론트 배포 주소 변경에 따른 Config 파일 수정

👥 전달사항


✅ 체크리스트

  • 코드가 컴파일 및 빌드됨
  • 모든 테스트가 통과함
  • 관련 문서가 업데이트됨
  • 커밋 메시지를 확인함

📸 스크린샷


💡 배운 것 / 시도한 것 / 고민한 점

@oroi2009 oroi2009 self-assigned this May 11, 2026
@oroi2009 oroi2009 merged commit 9206c29 into main May 11, 2026
2 checks passed

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request adds a new Vercel deployment URL to the allowed origin patterns in the WebSocket configuration. The review feedback suggests externalizing these hardcoded URLs into a configuration file to prevent duplication and inconsistencies between the WebConfig and WebSocketConfig classes.

Comment on lines +24 to +25
"https://z-igma.netlify.app",
"https://z-igma.vercel.app"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

허용된 오리진(Allowed Origins) 목록을 소스 코드에 직접 하드코딩하는 대신, application.yml과 같은 설정 파일로 분리하여 관리하는 것을 권장합니다.

현재 WebConfigWebSocketConfig 두 곳에서 동일한 URL 목록을 중복 관리하고 있어 유지보수 시 누락될 위험이 있습니다. 또한, WebConfig에는 포함되지 않은 http://localhost:8080WebSocketConfig에만 명시되어 있는 등 설정의 불일치가 발견됩니다.

@Value 또는 @ConfigurationProperties를 사용하여 설정 파일로부터 오리진 목록을 주입받아 두 설정 클래스에서 공통으로 사용하면 일관성을 유지하고 관리를 단순화할 수 있습니다.

예시:

# application.yml
app:
  cors:
    allowed-origins:
      - http://localhost:5173
      - http://localhost:8080
      - https://z-igma.netlify.app
      - https://z-igma.vercel.app

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.

1 participant