Create middleware with common patterns for authentication, redirects, or headers.
# Generate Next.js Middleware Create middleware with common patterns for authentication, redirects, or headers. ## Arguments - `$ARGUMENTS` - Middleware purpose (e.g., "authentication for dashboard routes" or "internationalization") ## Instructions Create middleware based on the provided purpose: 1. **Analyze Requirements** - Parse middleware purpose from `$ARGUMENTS` - Identify routes to protect/modify - Determine required logic 2. **Implementation** - Create middleware.ts in project root - Configure matcher for target routes - Implement required logic 3. **Common ...