fix(deploy): copy public directory to both standalone paths and ensure rewrites apply
Some checks failed
Some checks failed
This commit is contained in:
@@ -76,6 +76,8 @@ WORKDIR /app
|
|||||||
# Copy standalone output and static files (Monorepo paths)
|
# Copy standalone output and static files (Monorepo paths)
|
||||||
# Note: Base image already handles the non-root user and basic env
|
# 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
|
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/standalone ./
|
||||||
COPY --from=builder --chown=1001:65533 /app/apps/web/.next/static ./apps/web/.next/static
|
COPY --from=builder --chown=1001:65533 /app/apps/web/.next/static ./apps/web/.next/static
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user