Vercel 500 error with MIDDLEWARE_INVOCATION_FAILED on production deployment

Hi Vercel Team,

I’m encountering a 500: INTERNAL_SERVER_ERROR on my project:

Error: MIDDLEWARE_INVOCATION_FAILED
ID: bom1::9t68q-1775668353488-ae3c8300d095

This happens when i was diploying

I believe this might be an infrastructure issue, as:

  • Everything works locally
  • All environment variables are set correctly

Screenshot attached for reference.

Could you please help investigate?

Thank you

Hopefully this helps!