Changelog
Wednesday, June 2nd 2021
Posted by
At Vercel, our goal is to provide you with the best performance for your web projects, while still allowing for the most flexibility possible when it comes to tailoring responses to users.
As part of these efforts, we're now launching a new sub property called has
for rewrites
, redirects
, and headers
(in vercel.json
or next.config.js
), which allows for routing conditionally based on the values of headers, cookies, and query string parameters.
Combined with features like SSG, ISR, or cached SSR, it can be used in cases like these:
Cookie
header) or the type of device the visitor is using (User-Agent
header).Cookie
header).User-Agent
header).Check out the documentation and Next.js announcement to learn more.
Develop.
Preview.
Ship.
The development platform for the best frontend teams.