690331:1506 Correspondence Page Refactor by GPT-5.3-Codex Medium #02
CI / CD Pipeline / build (push) Successful in 20m59s
CI / CD Pipeline / deploy (push) Successful in 5m32s

This commit is contained in:
2026-03-31 15:06:52 +07:00
parent 7231870e02
commit edbf516cdd
+4 -1
View File
@@ -45,6 +45,9 @@ WORKDIR /w/frontend
COPY --from=deps /w/frontend/node_modules ./node_modules
COPY frontend/ ./
# Ensure public directory exists and has content
RUN ls -la /w/frontend/public/ || (echo "WARNING: public directory not found, creating empty one" && mkdir -p /w/frontend/public)
# NEXT_PUBLIC_* vars must be set at BUILD TIME (baked into client bundle)
ARG NEXT_PUBLIC_API_URL=https://backend.np-dms.work/api
ENV NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
@@ -103,7 +106,7 @@ COPY --from=build --chown=nextjs:nextjs /w/frontend/public ./public
COPY --from=build --chown=nextjs:nextjs /w/frontend/package.json ./
# Verify files exist
RUN ls -la ./node_modules/next/dist/bin/next && ls -la ./.next/ || (echo "ERROR: Required files not found!" && exit 1)
RUN ls -la ./node_modules/next/dist/bin/next && ls -la ./.next/ && ls -la ./public/ || (echo "ERROR: Required files not found!" && exit 1)
USER nextjs