Unverified Commit bba9b2f3 authored by Benjamin Woodruff's avatar Benjamin Woodruff Committed by GitHub

docs: Fix self-referential link to Middleware in middleware.mdx (#83854)

This link was to the current page, which isn't very useful.

Link to the getting started page
(https://nextjs.org/docs/app/getting-started/route-handlers-and-middleware#middleware)
instead
parent 1fc18244
...@@ -8,7 +8,7 @@ related: ...@@ -8,7 +8,7 @@ related:
- app/api-reference/functions/next-response - app/api-reference/functions/next-response
--- ---
The `middleware.js|ts` file is used to write [Middleware](/docs/app/api-reference/file-conventions/middleware) and run code on the server before a request is completed. Then, based on the incoming request, you can modify the response by rewriting, redirecting, modifying the request or response headers, or responding directly. The `middleware.js|ts` file is used to write [Middleware](/docs/app/getting-started/route-handlers-and-middleware#middleware) and run code on the server before a request is completed. Then, based on the incoming request, you can modify the response by rewriting, redirecting, modifying the request or response headers, or responding directly.
Middleware executes before routes are rendered. It's particularly useful for implementing custom server-side logic like authentication, logging, or handling redirects. Middleware executes before routes are rendered. It's particularly useful for implementing custom server-side logic like authentication, logging, or handling redirects.
......
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