Fix middleware at root in standalone mode by skirsten · Pull Request #33053 · vercel/next.js
Fixes a small bug that caused the build to crash if a _middleware is present at the root of the project and standalone mode is enabled.