diff --git a/apps/storefront/Dockerfile b/apps/storefront/Dockerfile index 17ca210..0154b4f 100644 --- a/apps/storefront/Dockerfile +++ b/apps/storefront/Dockerfile @@ -30,7 +30,12 @@ FROM node:20-alpine AS builder WORKDIR /app -COPY --from=deps /app/node_modules ./node_modules +# Copy everything from the deps stage — not just /app/node_modules. +# @heroui/react cannot be hoisted to the root by npm and is installed at +# apps/storefront/node_modules/ instead. Copying only the root node_modules +# would leave it missing. Copying all of /app/ brings both root and +# workspace-level node_modules, then full/ layers the source on top. +COPY --from=deps /app/ ./ COPY full/ . # NEXT_PUBLIC_* vars are baked into the client bundle at build time by Next.js.