Company
Date Published
Author
Greta Workman, Lee Robinson
Word count
1234
Language
English
Hacker News points
113

Summary

Vercel Edge Middleware is a fast and reliable way to rewrite and redirect requests in Next.js applications, allowing developers to define routing rules like rewrites, redirects, and headers with code, rather than lengthy configuration files. With the release of Next.js 12.2, Vercel Edge Middleware for Next.js is now generally available, and Edge Middleware is also available for all frameworks, including public beta along with other edge-first tools. Customers are using Edge Middleware to personalize content at the edge through custom experimentation, A/B testing, feature flags, and localization based on geolocation headers, resulting in better performance and a great user experience. The API for Middleware is intuitive, allowing developers to build features without worrying about framework-specific details, and Vercel includes this functionality for all customers.