From 121b88322a9e7eef34efd4fb5183acd8c61268db Mon Sep 17 00:00:00 2001 From: Austin Paquette Date: Sat, 27 Nov 2021 14:21:15 -0800 Subject: [PATCH] docs(middleware): fix middleware file extension consistency --- docs/middleware.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/middleware.md b/docs/middleware.md index ca24db42360c7..327f61179675e 100644 --- a/docs/middleware.md +++ b/docs/middleware.md @@ -45,7 +45,7 @@ Middleware can be used for anything that shares logic for a set of pages, includ ## Execution Order -If your Middleware is created in `/pages/_middleware.js`, it will run on all routes within the `/pages` directory. The below example assumes you have `about.tsx` and `teams.tsx` routes. +If your Middleware is created in `/pages/_middleware.ts`, it will run on all routes within the `/pages` directory. The below example assumes you have `about.tsx` and `teams.tsx` routes. ```bash - package.json