Structured Content 2022: Join our conference to explore fresh perspectives on content and digital experiences →

i guess the relevant error in the netlify deploy log is: Do you want to deploy a new API despite the dangerous changes?

3 replies
Last updated: Oct 15, 2020

HelloI did adapt the nuxt starter / Event template to my liking, then did some cleanup (removed unused schemata and such) and now both, studio and nuxt frontend won't deploy on netlify anymore. i guess the relevant error in the netlify deploy log is:

Do you want to deploy a new API despite the dangerous changes? (y/N) npm ERR! code ELIFECYCLE

npm ERR! errno 130
Any ideas on how to fix this? I already tried removing all node modules & lockfiles and then npm install everything again...
Any help would be greatly appreciated!

Oct 15, 2020, 7:30 AM

Hi there! Could you try deploying the GraphQL API manually before deploying on Netlify? To do so, go to your studio folder and run

sanity graphql deploy
. Alternatively, you could add a
--force
flag to the deploy command in your
package.json
file, but we generally recommend keeping the warnings to be aware of potentially breaking changes.

Oct 15, 2020, 7:41 AM

Thanks a lot peter, this worked perfecly.Have a very nice day!

Oct 15, 2020, 8:22 AM

You too! Thanks for confirming 🎉

Oct 15, 2020, 9:35 AM

Sanity.io: Get the most out of your content

Sanity.io is a platform to build websites and applications. It comes with great APIs that let you treat content like data. Give your team exactly what they need to edit and publish their content with the customizable Sanity Studio. Get real-time collaboration out of the box. Sanity.io comes with a hosted datastore for JSON documents, query languages like GROQ and GraphQL, CDNs, on-demand asset transformations, presentation agnostic rich text, plugins, and much more.

Don't compromise on developer experience. Join thousands of developers and trusted companies and power your content with Sanity.io. Free to get started, pay-as-you-go on all plans.