Open
Conversation
Vite 환경변수는 빌드 타임에 인라인되어 Docker build-arg로만 주입 가능했다. GitHub Secret 값이 잘못 설정되면 API 요청이 프론트엔드 서버로 향하는 문제가 있었다. 빌드 시 플레이스홀더를 삽입하고 컨테이너 시작 시 sed로 런타임 env 값으로 치환하도록 변경하여, Helm values의 env만으로 엔드포인트를 관리할 수 있게 한다. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
VITE_GRAPHQL_ENDPOINT)가 빌드 타임에 JS 번들에 인라인되어, GitHub Secret 값 오류 시 API 요청이 프론트엔드 서버로 향하는 문제 수정__GRAPHQL_ENDPOINT_PLACEHOLDER__)를 삽입하고, 컨테이너 시작 시sed로 런타임 환경변수 값으로 치환하도록 변경VITE_GRAPHQL_ENDPOINT) 의존성 제거 — Helm values의env만으로 엔드포인트 관리 가능Test plan
VITE_GRAPHQL_ENDPOINTenv 없이 컨테이너 실행 시 플레이스홀더가 JS에 남아있는지 확인VITE_GRAPHQL_ENDPOINT=https://api.loop.team.io.krenv와 함께 실행 시 플레이스홀더가 올바르게 치환되는지 확인https://api.loop.team.io.kr로 정상 전송되는지 확인🤖 Generated with Claude Code