Create Next.js 15 middleware for authentication guards, role-based routing, geo-redirects, and request transformation.
Specify your auth method, list protected route patterns (e.g., /dashboard/, /admin/), define roles, and add any geo-redirect rules.
Initial release
Sign in and download this prompt to leave a review.