Unverified Commit a234abfa authored by Kiko Beats's avatar Kiko Beats Committed by GitHub

docs: fix middleware path (#40340)

Hello,

Just update the docs to be aligned with the current middleware implementation 🙂Co-authored-by: 's avatarJJ Kasper <22380829+ijjk@users.noreply.github.com>
parent ea33b840
...@@ -31,7 +31,7 @@ To begin using Middleware, follow the steps below: ...@@ -31,7 +31,7 @@ To begin using Middleware, follow the steps below:
npm install next@latest npm install next@latest
``` ```
2. Create a `middleware.ts` (or `.js`) file at the same level as your `pages` directory 2. Create a `middleware.ts` (or `.js`) file at the root or in the `src` directory (same level as your `pages`)
3. Export a middleware function from the `middleware.ts` file: 3. Export a middleware function from the `middleware.ts` file:
```typescript ```typescript
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment