Skip sending request bodies to Routing Middleware
Vercel now allows you to skip sending client request bodies to Routing Middleware via the skipMiddlewareRequestBody configuration option, reducing middleware invocation costs and improving time to first byte for requests with large bodies.
You can now skip sending client request bodies to with . This reduces incoming usage for middleware invocations and can improve time to first byte, especially for requests with large bodies.Routing MiddlewareFast Origin TransferskipMiddlewareRequestBody
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 to in your project’s JSON configuration file, :skipMiddlewareRequestBodytruevercel.json
If you use a TypeScript configuration file, add the same setting to instead. This example assumes is installed:vercel.ts@vercel/config
Redeploy your project for the change to take effect. The option defaults to , so existing projects are unchanged unless you enable it.false
Read more in the .skipMiddlewareRequestBody documentation
Source: original entry ↗
More from Vercel
Follow Vercel to get its new changes in your feed and email digest.
Agents can now buy domains with the Vercel CLI
Vercel CLI now enables agents to discover, check availability, and initiate domain purchases through structured commands, with purchase confirmation remaining under user control via interactive terminal or dashboard approval.
New Pro teams default to 30-day deployment retention
Pro teams now default to a 30-day deployment retention period to balance keeping recent history available while reducing storage costs. You can configure a longer retention period in team settings if needed.
Deployment Storage billing begins for existing Pro teams
Pro teams will now be charged for Deployment Storage and Functions Storage at $0.10 per GB-month. The default deployment retention window changes to 30 days, with deployments older than 30 days deleted automatically unless you adjust your retention settings beforehand.