You can now define transform rules in vercel.json to modify HTTP request and response headers or query parameters, without changing application code.
Unlimited transform rules are available for all customers, and let you:
Set, append, or delete request headers, response headers, and query parameters
Use conditional logic to apply changes based on request metadata
Match by equality, inequality, prefixes, suffixes, inclusion in string arrays, or numeric comparisons for fine-grained control
Explore the interactive transform rules playground to see how this feature works.
This expands the flexibility of Vercel's CDN, which already supports routing behavior like redirects and rewrites to external origins.
For example:
{ "$schema": "https://openapi.vercel.sh/vercel.json", "routes": [ { "src": "/(.*)", "dest": "https://my-secure-proxied-dashboard.com/$1" "transforms": [ { "type": "request.headers", "op": "set", "target": { "key": "x-using-vercel-cdn" }, "args": "secret-value" } ] } ]}Refer to the transform rules documentation for detailed examples.
Reference Architecture
Choose a stack and work through the decisions behind it, with curated documentation, guides, templates, and courses to help you build.
- Agent stack: Build and operate agents with models, tools, and durable workflows.
- Web applications: Choose rendering, data, authentication, and caching approaches.
- Backends: Choose a runtime, connect services, and run background work.
Build with prompts
Build an app, extend an agent, or improve your project with ready-to-use prompts for your coding agent.