From 54bde35da68cc95f39e58415419179c199501a72 Mon Sep 17 00:00:00 2001 From: Lee Robinson Date: Tue, 26 Oct 2021 10:00:45 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Steven --- docs/middleware.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/middleware.md b/docs/middleware.md index 0010b85cd9f50ab..584548d4fc5381c 100644 --- a/docs/middleware.md +++ b/docs/middleware.md @@ -8,15 +8,15 @@ Middleware enables you to use code over configuration. This gives you full flexi ## Usage -1. Install the latest version of `next`: +1. Install the latest version of Next.js: ```jsx npm install next@latest ``` -2. Next, create a `_middleware.ts` file under your `/pages` directory. +2. Then, create a `_middleware.ts` file under your `/pages` directory. -3. Finally, create a function in the `_middleware.ts` file. +3. Finally, export a middleware function from the `_middleware.ts` file. ```jsx // pages/_middleware.ts