Middleware matcher leaves prefetched protected routes publicly accessible
In a Next.js App Router project (version 13 or later) using Middleware for centralized authentication, the goal is to guarantee that routes under a protected prefix such as /dashboard are never reachable without a valid session. The matcher configuration is intended to scope the security check to those paths, while the Edge Runtime restricts certain Node.js