Commit 3662ad9
fix: use node-linker=hoisted in .npmrc to eliminate pnpm symlinks for Vercel deployment
Vercel runs a second pnpm install after our buildCommand completes, which
re-creates pnpm symlinks before the TypeScript function bundler runs. The
previous patch-symlinks.cjs approach was ineffective because it only patched
during our build step, not after Vercel's own re-install.
Add node-linker=hoisted to root .npmrc so pnpm uses a flat node_modules layout
(no symlinks for registry packages) in both install steps. Remove the
now-ineffective patch-symlinks.cjs call from build-vercel.sh.
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Agent-Logs-Url: https://github.com/objectstack-ai/objectql/sessions/5c27ebc5-c40a-4756-8482-8f4c6c7972081 parent 8da7910 commit 3662ad9
2 files changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 50 | | |
55 | 51 | | |
56 | 52 | | |
| |||
0 commit comments