[WIP]환경변수(API/WS) 분리 및 영어 버전 다국어 처리 작업 #2#2
Open
HIH-01 wants to merge 33 commits into
Open
Conversation
…ring 로직 병합 및 언어팩 적용
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
##확인 및 주의사항
본 PR은 실제 서비스(main) 반영 전, 로직 검증 및 환경변수 설정을 위한 테스트 목적의 PR입니다.
Vercel 배포 환경에서 새로운 환경변수 등록이 선행되어야 정상 작동합니다.
Preview 배포 주소에서 최종 동작 확인이 완료되기 전까지는 Merge를 지양해 주시기 바랍니다.
🛠 작업 내용
⚠️ 확인 요청 사항
하드코딩 주소 제거: 흩어져 있던 API 및 WebSocket 주소를 .env 기반 환경변수로 통합 관리하도록 수정했습니다.
VITE_API_BASE_URL 및 VITE_WS_BASE_URL 적용
다국어 체계 구축: src/utils/language 폴더를 통해 언어에 맞는 텍스트를 가져오는 일종의 언어팩 체계를 구축하였으며 추후 영어가 아닌 다른 외국어의 추가에도 반응하도록 구현했습니다.
신규 에셋 추가: 영어 버전에 필요한 이미지 에셋들을 src/assets/en 경로에 추가했습니다.
기존 로직 보존: 기존 개발자분들의 주석, 미구현 기능 메모, 새로고침 재연결 로직 등은 최대한 유지하며 필요한 기능만 얹었습니다.
Vercel 환경변수 등록: 배포 환경(Vercel) 대시보드에서 VITE_API_BASE_URL와 VITE_WS_BASE_URL 값을 등록해 주셔야 정상 작동합니다.