Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(deploy): retain pnpm patches in Vercel and web Docker builds (MUL-7999) (#9229)

Multica Eve765267e12309
diff --git a/.dockerignore b/.dockerignore
index 5c2eff43b2..bf9f55035a 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 53f3a821bc..1e4b4a36be 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 73572a7679..f4eba10364 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/