Can't open the Build logs when Vercel deploy fails at first try

Viewed 310

I am trying to deploy a NextJs application to Vercel. I followed steps in this tutorial: https://vercel.com/guides/nextjs-prisma-postgres and the deploy with that app works but with my new app doesn't.

On localhost my application runs just fine but when I'm trying to deploy on Vercel the deploy fails with message Deployment failed with error. I'm trying to get the logs, to see why the deploy failed but I can't click on the Building part of the screen where I could see the build logs. Picture of Vercel after Deploy failed:

enter image description here

My question is how could I see the logs if the Vercel deploy fails at first try?

2 Answers

I had the same problem. I couldn't deploy my app in Vercel and none error showed on the console. So, I run the npm run build locally and there it showed me some typescript errors that don't appear in any other place. After I solved those errors I could deploy my app in Vercel without problems.

Related