Thanks for sharing the repo. There were a couple of build settings that I had to change to get it working. Basically, anywhere you have npm install && next build should be changed to simply next build. There’s a separate install step that handles package installation prior to the build step.
What I changed:
- Remove
"buildCommand": "npm install && npm run build"fromvercel.json - Change
buildscript inpackage.jsonto justnext build - Go to Settings from the Vercel project dashboard, open the Build and Deployment tab, make sure
Next.jsis selected as the Framework Preset and turn off any command overrides
Hope that helps!