Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(nextjs): Warn about misplaced middleware file when using auth or …
…getAuth (#1908) * fix(nextjs): Warn about misplaced middleware file when using auth or getAuth For NextJS 13 application, if the `/src` directory is used then the middleware file needs to be nested under it, otherwise the middleware will not run. This is a very common user error - this commit updates the error message to list moving middleware under /src as a potential fix. * Create selfish-pens-laugh.md * Update packages/nextjs/src/server/errors.ts Co-authored-by: Bryce Kalow <[email protected]> --------- Co-authored-by: Bryce Kalow <[email protected]>
- Loading branch information