Deploy errors

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" from vercel.json
  • Change build script in package.json to just next build
  • Go to Settings from the Vercel project dashboard, open the Build and Deployment tab, make sure Next.js is selected as the Framework Preset and turn off any command overrides

Hope that helps!