From 716ece1c6c56df224d5f78eface5b9482b25aef4 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Fri, 6 Mar 2026 18:33:01 +0100 Subject: [PATCH] fix(payload): explicitly copy generated importMap.js to nextjs standalone image runner --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cb3f53a..f54b452 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,7 +49,8 @@ COPY --from=builder /app/apps/web/public ./apps/web/public COPY --from=builder /app/apps/web/.next/standalone ./ COPY --from=builder /app/apps/web/.next/static ./apps/web/.next/static - +# Explicitly copy Payload dynamically generated importMap.js excluded by Standalone tracing +COPY --from=builder /app/apps/web/app/(payload)/admin/importMap.js ./apps/web/app/(payload)/admin/importMap.js # Start from the app directory to ensure references solve correctly WORKDIR /app/apps/web CMD ["node", "server.js"]