Nextjs Guideline: Middleware — Match specific paths. Description: Configure middleware matcher. Do: config.matcher for specific routes. Don't: Run middleware on all routes. Good Example: matcher: ['/dashboard/:path*']. Bad Example: No matcher config. Severity: Medium. Docs: .