diff --git a/src/data/roadmaps/nextjs/content/middelware@gpZNwsh075wl5eH2gLKro.md b/src/data/roadmaps/nextjs/content/middelware@gpZNwsh075wl5eH2gLKro.md index 777f879fe..201c18e7c 100644 --- a/src/data/roadmaps/nextjs/content/middelware@gpZNwsh075wl5eH2gLKro.md +++ b/src/data/roadmaps/nextjs/content/middelware@gpZNwsh075wl5eH2gLKro.md @@ -1,4 +1,4 @@ -i# Middleware +# Middleware Middleware is a powerful feature that allows you to intercept 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. @@ -6,4 +6,4 @@ Visit the following resources to learn more: - [@official@Middleware for App Router](https://nextjs.org/docs/app/api-reference/file-conventions/middleware) - [@official@Middleware for Pages Router](https://nextjs.org/docs/pages/api-reference/file-conventions/middleware) -- [@video@Next.js 15 Tutorial - Middleware](https://www.youtube.com/watch?v=t1KTTZbqCm0) \ No newline at end of file +- [@video@Next.js 15 Tutorial - Middleware](https://www.youtube.com/watch?v=t1KTTZbqCm0)