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 <[email protected]>

* fix(deploy): include pnpm patches in web Docker builds (MUL-7999)

Co-authored-by: multica-agent <[email protected]>

---------

Co-authored-by: Sol-Boy <[email protected]>
Co-authored-by: multica-agent <[email protected]>
This commit is contained in:
Multica Eve
2026-10-13 18:37:20 +08:00
committed by GitHub
co-authored by multica-agent Sol-Boy
parent 691e5b48c0
commit 765267e123
3 changed files with 13 additions and 2 deletions
+6 -2
View File
@@ -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/
+5
View File
@@ -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
+2
View File
@@ -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/