Skip to content

Commit 807855a

Browse files
fix: use npm ci on Vercel so patch-package runs against pristine node_modules (#62)
Vercel restores node_modules from the build cache before running the install command. With `npm install`, the cached files are kept in place and patch-package then runs against a pre-patched starlight-llms-txt, causing the postinstall step to fail with 'Failed to apply patch for package starlight-llms-txt' on every deploy after #51. `npm ci` deletes node_modules before installing, so patch-package always runs against the pristine npm tarball. Co-authored-by: Oz <oz-agent@warp.dev>
1 parent 8756f22 commit 807855a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vercel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"framework": "astro",
3-
"installCommand": "npm install",
3+
"installCommand": "npm ci",
44
"buildCommand": "npm run build",
55
"devCommand": "npm run dev",
66
"headers": [

0 commit comments

Comments
 (0)