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.
Vercel Sandbox creation now returns ready sandbox
Vercel Sandbox instances are now ready to run commands and access files immediately upon creation completion. The Sandbox.create() method now waits for snapshot restoration to finish before resolving, eliminating delays on the first command or file operation.
Step 5 Preview now available on AI Gateway
StepFun's Step 5 Preview model is now available on Vercel's AI Gateway, supporting text and image input with a 1M-token context window optimized for agentic coding, professional knowledge work, and financial analysis. The model can be accessed via the unified AI Gateway API for tracking usage, cost management, and performance optimization.
Grok Imagine Video 1.5 Lite now available on AI Gateway
xAI's Grok Imagine Video 1.5 Lite model is now available on AI Gateway, enabling users to generate videos from text prompts and images with native audio support in multiple resolutions and aspect ratios. The model integrates seamlessly with AI Gateway's unified API for model management, cost tracking, and routing configuration.