You can now skip sending client request bodies to Routing Middleware with skipMiddlewareRequestBody . This reduces incoming Fast Origin Transfer usage for middleware invocations and can improve time to first byte, especially for requests with large bodies.
Enable this option only if your Routing Middleware doesn’t read request bodies. Vercel Functions and rewrite targets still receive the body, so you can read and process it there.
Set skipMiddlewareRequestBody to true in your project’s JSON configuration file, vercel.json :
{
"$schema" : "https://openapi.vercel.sh/vercel.json" ,
"skipMiddlewareRequestBody" : true
}
Skip forwarding request bodies to Routing Middleware using vercel.json.
If you use a TypeScript configuration file, add the same setting to vercel.ts instead.…