Skip to content

Commit

Permalink
docs: fix middleware path (#40340)
Browse files Browse the repository at this point in the history
Hello,

Just update the docs to be aligned with the current middleware implementation πŸ™‚

Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
  • Loading branch information
Kikobeats and ijjk committed Sep 8, 2022
1 parent ea33b84 commit a234abf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced-features/middleware.md
Expand Up @@ -31,7 +31,7 @@ To begin using Middleware, follow the steps below:
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:

```typescript
Expand Down

0 comments on commit a234abf

Please sign in to comment.