next.js
ef33018a - fix next/headers when used in src/middleware (#54889)

Commit
2 years ago
fix next/headers when used in src/middleware (#54889) This updates the check to see if a request is made in middleware to be a bit less brittle so it doesn't break if middleware is located in `/src/middleware` (`params.page` would be `/src/middleware` rather than `/middleware` in that case) fixes https://github.com/vercel/next.js/discussions/54853
Author
Parents
Loading