This commit is contained in:
@@ -14,6 +14,12 @@ RUN npm install
|
||||
ARG CACHEBUST=1
|
||||
COPY . .
|
||||
|
||||
# Production API wiring (baked into the build):
|
||||
# - the browser calls /api on its own origin; nginx forwards that to backend:5000
|
||||
# - the Nuxt server (SSR) reaches the backend container by service name
|
||||
ENV NUXT_PUBLIC_API_BASE=
|
||||
ENV NUXT_API_PROXY_TARGET=http://backend:5000
|
||||
|
||||
# Build the Nuxt app
|
||||
RUN npm run build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user