Why does an Edge Function fail only after deployment?
The deployed runtime can have different environment variables, bundle contents, and API restrictions from a local Node.js process.
Vercel · HTTP 500
Investigate Vercel EDGE_FUNCTION_INVOCATION_FAILED by checking Edge runtime exceptions, unsupported Node APIs, bundle imports, and deployment logs.
Origin / Application
Paste a captured HTTP response or enter a status and headers. Only the status and response headers are sent; common credential headers are filtered first.
Diagnostic report
Error code / name
Fault domain
Origin / ApplicationThe Edge Function failed during invocation, often because code throws or imports an API unavailable in the Edge runtime. A deployment-specific bundle or environment value can also trigger a runtime exception.
The Edge Function failed during invocation, often because code throws or imports an API unavailable in the Edge runtime. A deployment-specific bundle or environment value can also trigger a runtime exception.
Client -> Vercel Edge -> Edge Function loads -> runtime exception -> X responsecurl -sS -v --max-time 30 https://example.com/edge/health -o /dev/nullexport const runtime = "edge";
export async function GET() {
return Response.json({ status: "ok" });
}SteadyNode's regional HTTP checks detect deployed edge failures quickly and record provider headers so teams can match outages to a specific invocation.
No credit card required.
Start for freeThe deployed runtime can have different environment variables, bundle contents, and API restrictions from a local Node.js process.
No. Use Edge runtime only when its API and duration constraints match the handler; a Node.js function may be the correct runtime.