Edge Middleware for Next.js is now generally available on all plans. Edge Middleware allows you to run code on Vercel's Edge Network before the request is processed on your site. Middleware runs on the Vercel Edge network and can be used to handle A/B testing, geolocation, authentication, and more.
Learn how to get started with Vercel Edge Middleware.
Software Engineer, Infrastructure