I have a simple project consisting of a FastAPI backend and a Svelte frontend that gets built with Vite and served statically without SSR. My previous working setup involved using a custom installCommand and buildCommand to build the frontend, and this config was working as of a couple weeks ago. Now, however, the install step seems not to be running, breaking the build.
Here is the top of the last successful deploy log, from 8 December:
Running build in Washington, D.C., USA (East) – iad1Build machine configuration: 2 cores, 8 GBRetrieving list of deployment files...Previous build caches not available.Downloading 36 deployment files...Running "vercel build"Vercel CLI 49.1.2Running "install" command: `cd frontend && npm install`...added 47 packages, and audited 48 packages in 2s7 packages are looking for funding run `npm fund` for detailsfound 0 vulnerabilitiesRunning "cd frontend && npm run build"> frontend@0.1.0 build> vite buildvite v7.2.6 building client environment for production......Here is the most recent deploy log, from 20 December:
Running build in Washington, D.C., USA (East) – iad1Build machine configuration: 2 cores, 8 GBRetrieving list of deployment files...Previous build caches not available.Downloading 42 deployment files...Running "vercel build"Vercel CLI 50.1.3Running "cd frontend && npm run build"> frontend@0.3.0 build> vite buildsh: line 1: vite: command not foundError: Command "cd frontend && npm run build" exited with 127The installCommand setting in vercel.json has not changed between these two builds, and the custom install command is still correctly displayed and marked active in the project settings.
Can anyone help me determine why the install command would suddenly stop being run in this instance?