🔮 Sanity Create is here. Writing is reinvented. Try now, no developer setup

Troubleshooting deployment of Next.js app on Vercel in Slack thread

3 replies
Last updated: May 23, 2023
Hi all!
I was trying to deploy my next js app on Vercel, but facing this error repeatedly :

Error: Command "npm run build" exited with 1

What should I look into to resolve this ?
PS: I tried overriding the build command with
CI= npm run build
… got the same error
May 20, 2023, 9:18 AM
👋 do the logs give you ana error?
May 22, 2023, 4:34 PM
Sorted out the issue! There was a tiny problem with the index file…Thanks for reaching out!
May 23, 2023, 6:47 AM
Oh great!
May 23, 2023, 3:26 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?