Vercel Adds skipMiddlewareRequestBody to Reduce Routing Middleware Overhead
Key point
The new configuration option reduces Fast Origin Transfer usage and improves time to first byte by preventing request bodies from being sent to Routing Middleware.
Details
Vercel introduced skipMiddlewareRequestBody, a configuration option that prevents client request bodies from being sent to Routing Middleware. This change reduces incoming Fast Origin Transfer usage for middleware invocations and can improve time to first byte, particularly for requests with large bodies.
The option is enabled by setting skipMiddlewareRequestBody to true in the project's vercel.json file. For projects using TypeScript configuration, the setting can be added to vercel.ts if @vercel/config is installed. A redeploy is required for the change to take effect.
This setting should only be enabled if the Routing Middleware does not need to read request bodies. Vercel Functions and rewrite targets continue to receive the body, allowing them to read and process it as usual. The option defaults to false, ensuring existing projects remain unchanged unless explicitly configured.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.