diff --git a/docs/docs/tutorials/securing-pages-and-api-routes.md b/docs/docs/tutorials/securing-pages-and-api-routes.md index e058056071..5e120ebbd8 100644 --- a/docs/docs/tutorials/securing-pages-and-api-routes.md +++ b/docs/docs/tutorials/securing-pages-and-api-routes.md @@ -42,7 +42,7 @@ export default function Page() { ### Next.js (Middleware) -With NextAuth.js 4.2.0 and Next.js 12, you can now protect your pages via the middleware pattern more easily. If you would like to protect all pages, you can create a `middleware.js` file in your root `pages` directory which looks like this: +With NextAuth.js 4.2.0 and Next.js 12, you can now protect your pages via the middleware pattern more easily. If you would like to protect all pages, you can create a `middleware.js` file at the root or in the src directory (same level as your `pages`) which looks like this: ```js title="/middleware.js" export { default } from "next-auth/middleware"