MIDDLEWARE_INVOCATION_FAILED
ماذا يعني خطأ Vercel (الاستضافة) هذا
كيف يظهر
500 MIDDLEWARE_INVOCATION_FAILED
ماذا يعني
The Routing Middleware that runs before your pages failed while handling the request, for example because of an unhandled error in its code, so Vercel returned 500 Internal Server Error.
السبب المعتاد في تطبيق مبني بالذكاء الاصطناعي
AI tools often add a middleware file that creates a Supabase client to refresh the session on every request. If the Supabase URL or key variables are missing on Vercel, that middleware throws on every page.
افحص هذا أولًا
In your Vercel project settings, check that every environment variable your middleware file reads is set for the environment you deployed to.