fix(deploy): gitignore pnpm-workspace.yaml so Coolify's pnpm 9 doesn't choke

pnpm 11 (local) keeps the build-approval list in pnpm-workspace.yaml and
will regenerate the file on every 'pnpm install'. Coolify ships pnpm
9.15.9 which treats any pnpm-workspace.yaml as a monorepo descriptor and
demands a 'packages:' field — without it the build fails immediately with
'packages field missing or empty'.

So the file has to be present locally (pnpm 11 needs it) and absent in
the build context (pnpm 9 must not see it). gitignoring it satisfies both
ends. The build-approval list is also mirrored in package.json's
'pnpm.onlyBuiltDependencies' which pnpm 9 understands, so Coolify still
gets the right behaviour for sharp / unrs-resolver.
This commit is contained in:
kovakmedya
2026-05-21 23:39:41 +03:00
parent 16f4dcfe66
commit 3496ab1919
2 changed files with 1 additions and 3 deletions
+1
View File
@@ -44,3 +44,4 @@ next-env.d.ts
# claude code (local-only)
.claude/
pnpm-workspace.yaml
-3
View File
@@ -1,3 +0,0 @@
allowBuilds:
sharp: set this to true or false
unrs-resolver: set this to true or false