From d447b3d70504686c5c346be5e06fce8c424f0be4 Mon Sep 17 00:00:00 2001 From: Hong Yi Chen Date: Mon, 11 May 2026 10:04:35 -0700 Subject: [PATCH] fix: use npm ci on Vercel so patch-package runs against pristine node_modules 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 --- vercel.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 941789c6..86ca682d 100644 --- a/vercel.json +++ b/vercel.json @@ -1,6 +1,6 @@ { "framework": "astro", - "installCommand": "npm install", + "installCommand": "npm ci", "buildCommand": "npm run build", "devCommand": "npm run dev", "headers": [