✨Discover storytelling in the AI age with Pixar's Matthew Luhn at Sanity Connect, May 8th—register now

Deployment failing on Netlify due to "next: not found" error

3 replies
Last updated: Aug 24, 2020
hey all, total newb at this (not to next, but to sanity). my studio and site run fine local, but the deployment keeps failing on netlify. i've changed 0 code on from the repo besides npm install and npm update.10
:16:34 PM: sanity-nextjs-landing-pages-web: > next build && next export && node exportSitemap.js10
:16:34 PM: sanity-nextjs-landing-pages-web: sh: 1: next: not found10
:16:34 PM: sanity-nextjs-landing-pages-web: npm ERR! code ELIFECYCLE
Apr 24, 2020, 4:17 AM
Hi Matt, are all the issues you describe here resolved with the clear cache and redeploy you did? If not, the custom domain one might an issue with your CORS settings if the domain is not added there. Let me know if you need any pointers for this! 🙂
Apr 24, 2020, 10:36 AM
I’m having the same issue
May 19, 2020, 8:20 PM
I’m also having the same issue. HELP
Aug 24, 2020, 4:05 AM

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?