Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/content/docs/middleware.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Only the first match is used.
1. A request arrives at the server
2. If a middleware file exists, it is executed **before** the router
3. If middleware returns a `Response`, it short-circuits (no routing occurs)
4. If middleware returns via `NextResponse.next()`, the request proceeds normally
4. If middleware returns `NextResponse.next()`, the request proceeds to the router

> [!IMPORTANT]
> Middleware runs on both the development server and edge adapters (Vercel Edge, Cloudflare Workers).