fix(deploy): copy public directory to both standalone paths and ensure rewrites apply
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 14s
Build & Deploy / 🏗️ Build (push) Successful in 9m47s
Build & Deploy / 🚀 Deploy (push) Successful in 20s
Build & Deploy / 🩺 Smoke Test (push) Failing after 3s
Build & Deploy / 🔔 Notify (push) Successful in 1s

This commit is contained in:
2026-04-14 14:48:16 +02:00
parent 5f27bb9950
commit 0a6f5f34ce

View File

@@ -76,6 +76,8 @@ WORKDIR /app
# Copy standalone output and static files (Monorepo paths)
# Note: Base image already handles the non-root user and basic env
COPY --from=builder --chown=1001:65533 /app/apps/web/public ./apps/web/public
# Fallback target: Next.js sometimes resolves from the process root depending on version
COPY --from=builder --chown=1001:65533 /app/apps/web/public ./public
COPY --from=builder --chown=1001:65533 /app/apps/web/.next/standalone ./
COPY --from=builder --chown=1001:65533 /app/apps/web/.next/static ./apps/web/.next/static