Setting the file. One moment.
Subchapter 7.38
references/support-topics/middleware-proxy-edge-cost.mdMarkdown991 BView on GitHub
Middleware recommendations should reduce unnecessary interception, not remove required request handling.
Use topMiddlewarePaths and the matcher config. Confirm which paths need auth, rewrites, headers, or locale handling. Check whether static assets, images, or routes with no middleware need are being matched.
Do not narrow the matcher in a way that bypasses required auth or routing behavior. Do not move middleware work into every route if the current matcher is already scoped.
State the current middleware share, the dominant matched paths, and the exact matcher line to change.