diff --git a/docker/deploy/docker-compose.yml b/docker/deploy/docker-compose.yml index e0984a9e..115aef91 100644 --- a/docker/deploy/docker-compose.yml +++ b/docker/deploy/docker-compose.yml @@ -42,6 +42,7 @@ services: dockerfile: ../docker/deploy/frontend.Dockerfile args: - NEXT_PUBLIC_API_URL=https://api.vexplor.com/api + - SERVER_API_URL=http://backend:3001 container_name: pms-frontend-prod restart: always environment: diff --git a/docker/deploy/frontend.Dockerfile b/docker/deploy/frontend.Dockerfile index 5accb6c4..de8df2a9 100644 --- a/docker/deploy/frontend.Dockerfile +++ b/docker/deploy/frontend.Dockerfile @@ -23,6 +23,10 @@ ENV NEXT_TELEMETRY_DISABLED 1 ARG NEXT_PUBLIC_API_URL=https://api.vexplor.com/api ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL +# Next.js rewrites 프록시용 (빌드 시 routes-manifest.json에 포함됨) +ARG SERVER_API_URL=http://backend:3001 +ENV SERVER_API_URL=$SERVER_API_URL + # Build the application ENV DISABLE_ESLINT_PLUGIN=true RUN npm run build