fix: ARG NEXT_PUBLIC_API_URL en build para hornear la API real en el bundle
This commit is contained in:
1 parent
4233024807
commit
9494935775
1 file changed
+5
@@ -13,6 +13,11 @@ WORKDIR /app
|
|||||||
COPY --from=deps /app/node_modules ./node_modules
|
COPY --from=deps /app/node_modules ./node_modules
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
# NEXT_PUBLIC_* se hornea en el bundle en build-time: viene como build-arg
|
||||||
|
# (el deployer lo inyecta) con default a la API de producción.
|
||||||
|
ARG NEXT_PUBLIC_API_URL=https://api.devops.norteamericano.cl
|
||||||
|
ENV NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL
|
||||||
|
|
||||||
ENV NEXT_TELEMETRY_DISABLED=1
|
ENV NEXT_TELEMETRY_DISABLED=1
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
|
|||||||
Reference in new issue
Block a user