From c10a841620825ae2524c1aaf01fd264895ec537c Mon Sep 17 00:00:00 2001 From: Austin P Date: Sun, 28 Nov 2021 07:56:31 -0800 Subject: [PATCH] docs(middleware): file extension consistency (#31879) Almost every one of the examples for middleware specific a `.ts` file extension, this PR just makes it consistent. --- 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