Build Next.js 15 middleware for JWT validation, role-based route protection, geo-redirects, and A/B testing at the edge.
List protected routes, auth cookie name, login path, role-route mapping, geo-redirect rules, and public asset paths to skip.
Initial release
Sign in and download this prompt to leave a review.