Question

Failed to build: exit status 1 when trying to deploy a Next.js app to App platform

Hi. I was attempting to Deploy a Next.js App to App Platform , I followed the tutorial fully. But when I tried to deploy it, i got this error: https://imgur.com/a/LGQHzdj

ERROR: failed to build: exit status 1

When searching google for this error, I found some answers saying that clearing the cache, and do some commands to the CLI. But I can’t even access the CLI. Help would be much appreciated.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

ERROR: failed to build: exit status 1

This is also happening on my next app deployed via app platform. Does anyone know how to fix it?