From 765267e123098e209e7fbcd004afe7213c46ce1b Mon Sep 17 00:00:00 2001 From: Multica Eve Date: Tue, 13 Oct 2026 18:37:20 +0800 Subject: [PATCH] fix(deploy): retain pnpm patches in Vercel and web Docker builds (MUL-7999) (#9229) * fix(deploy): retain pnpm patch files in Vercel uploads (MUL-7999) Co-authored-by: multica-agent * fix(deploy): include pnpm patches in web Docker builds (MUL-7999) Co-authored-by: multica-agent --------- Co-authored-by: Sol-Boy Co-authored-by: multica-agent --- .dockerignore | 8 ++++++-- .vercelignore | 5 +++++ Dockerfile.web | 2 ++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index 5c2eff43b..bf9f55035 100644 --- a/.dockerignore +++ b/.dockerignore @@ -35,10 +35,14 @@ coverage /docs/ *.md -# Only the web workspace is used by Dockerfile.web. Default-exclude future -# app workspaces so they do not silently enter the build context. +# Dockerfile.web needs the web workspace and root dependency patch inputs. +# Default-exclude other app files so they do not enter the build context. /apps/* !/apps/web/ +!/apps/mobile +/apps/mobile/* +!/apps/mobile/patches +!/apps/mobile/patches/** # Repository-only tooling /.github/ diff --git a/.vercelignore b/.vercelignore index 53f3a821b..1e4b4a36b 100644 --- a/.vercelignore +++ b/.vercelignore @@ -36,6 +36,11 @@ _features !/apps/web/** !/apps/docs !/apps/docs/** +# Root pnpm patchedDependencies needs these files even for frontend-only installs. +!/apps/mobile +/apps/mobile/* +!/apps/mobile/patches +!/apps/mobile/patches/** /scripts/ *.log diff --git a/Dockerfile.web b/Dockerfile.web index 73572a767..f4eba1036 100644 --- a/Dockerfile.web +++ b/Dockerfile.web @@ -8,6 +8,8 @@ COPY pnpm-lock.yaml pnpm-workspace.yaml package.json turbo.json .npmrc ./ COPY apps/web/package.json apps/web/ # postinstall runs fumadocs-mdx which reads apps/web/source.config.ts COPY apps/web/source.config.ts apps/web/source.config.ts +# Root pnpm patchedDependencies is read even without the mobile workspace. +COPY apps/mobile/patches/ apps/mobile/patches/ COPY packages/core/package.json packages/core/ COPY packages/ui/package.json packages/ui/ COPY packages/views/package.json packages/views/