diff --git a/Dockerfile b/Dockerfile index 609384d6..09fceefb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,7 +42,7 @@ COPY frontend/ ./ # 빌드 시점에 환경변수 설정 (번들에 포함됨) ENV NEXT_TELEMETRY_DISABLED=1 ENV NODE_ENV=production -ENV NEXT_PUBLIC_API_URL="https://logistream.kpslp.kr:8080/api" +ENV NEXT_PUBLIC_API_URL="https://logistream.kpslp.kr/api" RUN npm run build:no-lint # ------------------------------ @@ -115,7 +115,7 @@ ENV NODE_ENV=production \ KMA_API_KEY="ogdXr2e9T4iHV69nvV-IwA" \ ITS_API_KEY="d6b9befec3114d648284674b8fddcc32" \ NEXT_TELEMETRY_DISABLED="1" \ - NEXT_PUBLIC_API_URL="https://logistream.kpslp.kr:8080/api" + NEXT_PUBLIC_API_URL="https://logistream.kpslp.kr/api" # 비특권 사용자로 전환 USER nodejs diff --git a/frontend/lib/api/client.ts b/frontend/lib/api/client.ts index d3afe83b..97179313 100644 --- a/frontend/lib/api/client.ts +++ b/frontend/lib/api/client.ts @@ -13,9 +13,9 @@ const getApiBaseUrl = (): string => { const currentPort = window.location.port; const protocol = window.location.protocol; - // 프로덕션 환경: logistream.kpslp.kr → 백엔드는 같은 도메인 8080 포트 + // 프로덕션 환경: logistream.kpslp.kr → Ingress를 통한 접근 (포트 없음) if (currentHost === "logistream.kpslp.kr") { - return `${protocol}//${currentHost}:8080/api`; + return `${protocol}//${currentHost}/api`; } // 프로덕션 환경: v1.vexplor.com → api.vexplor.com diff --git a/frontend/lib/utils/apiUrl.ts b/frontend/lib/utils/apiUrl.ts index c50dc533..6984b1bc 100644 --- a/frontend/lib/utils/apiUrl.ts +++ b/frontend/lib/utils/apiUrl.ts @@ -8,9 +8,9 @@ export function getApiUrl(endpoint: string): string { if (typeof window !== "undefined") { const hostname = window.location.hostname; - // 프로덕션: logistream.kpslp.kr → 백엔드는 같은 도메인 8080 포트 + // 프로덕션: logistream.kpslp.kr → Ingress를 통한 접근 (포트 없음) if (hostname === "logistream.kpslp.kr") { - return `https://logistream.kpslp.kr:8080${endpoint}`; + return `https://logistream.kpslp.kr${endpoint}`; } // 프로덕션: v1.vexplor.com → https://api.vexplor.com