AntiPattern
Next.js Router Wrapper Traps
nextjs-wrapper-semantics-trap
Next.js middleware/router wrappers fail to preserve expected execution semantics—redirects, auth handlers, or route matching get skipped or swallowed—so requests either never reach handlers or client navigation/auth silently breaks at runtime and during dev.