Build Error & Deployment Issues: Next.js Project Not Deploying

Hello,

I’m experiencing an issue with the automatic deployment of my Next.js project on Vercel.

Problem:

  • Commits on the main branch are no longer triggering automatic deployments
  • The latest commit (6bb9413) was not detected by Vercel
  • The last successful deployment was on March 26, 2024
  • When Vercel detects a commit, there’s a build error:
    [11:21:40.767] Cloning github.com/marie2/socialrally (Branch: main, Commit: 51c2187)
    [11:21:40.773] Skipping build cache, deployment was triggered without cache.
    [11:21:41.219] Cloning completed: 452.000ms
    [11:21:41.327] An unexpected error happened when running this build. We have been notified of the problem.
    

Current Configuration:

  • Project: SocialRally
  • Framework: Next.js 14.1.0
  • Deployment Branch: main
  • GitHub Integration: active
  • Environment Variables: configured
  • Recent Changes: Supabase dependencies update (@supabase/ssr)

Actions already taken:

  • Verified GitHub-Vercel connection
  • Updated dependencies (including @supabase/ssr)
  • Configured vercel.json
  • Attempted deployment force via commit
  • Cleared build cache

Could you please help me with:
Identifying the cause of the unexpected build error

Thank you in advance for your help.

Hi, Maria!

We wrote this post about debugging these build errors. Could you take a look and let us know how you get on?