Unverified Commit 28afb887 authored by Stuart Keith's avatar Stuart Keith Committed by GitHub

Clarify middleware.ts location in docs (#44788)

parent 25b5845a
......@@ -33,7 +33,7 @@ To begin using Middleware, follow the steps below:
npm install next@latest
```
2. Create a `middleware.ts` (or `.js`) file at the root or in the `src` directory (same level as your `pages`)
2. Create a `middleware.ts` (or `.js`) file at the same level as your `pages` (in the root or `src` directory)
3. Export a middleware function from the `middleware.ts` file:
```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