From 3496ab191999680e45676f96bc0b1f39ffa7f06f Mon Sep 17 00:00:00 2001 From: kovakmedya Date: Thu, 21 May 2026 23:39:41 +0300 Subject: [PATCH] fix(deploy): gitignore pnpm-workspace.yaml so Coolify's pnpm 9 doesn't choke MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- .gitignore | 1 + pnpm-workspace.yaml | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 pnpm-workspace.yaml diff --git a/.gitignore b/.gitignore index e0604ba..b73140b 100644 --- a/.gitignore +++ b/.gitignore @@ -44,3 +44,4 @@ next-env.d.ts # claude code (local-only) .claude/ +pnpm-workspace.yaml diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml deleted file mode 100644 index a2a1883..0000000 --- a/pnpm-workspace.yaml +++ /dev/null @@ -1,3 +0,0 @@ -allowBuilds: - sharp: set this to true or false - unrs-resolver: set this to true or false