chore: Update Docker configuration for frontend deployment

- Added SERVER_API_URL argument to the Dockerfile for backend API integration.
- Updated docker-compose.yml to include SERVER_API_URL for the frontend service.

These changes aim to ensure proper communication between the frontend and backend services during deployment.
This commit is contained in:
kjs
2026-04-11 22:21:11 +09:00
parent 18333fe1f1
commit 2fc149c84b
2 changed files with 5 additions and 0 deletions

View File

@@ -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:

View File

@@ -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