8080포트 제거
This commit is contained in:
parent
91a4401120
commit
ff21a84932
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue