NextJS 12 has a lot of new and exciting features. One of these features is middleware in NextJS. Middleware allows one to modify the response to a request even before it is completed. We can rewrite, redirect, add headers or even stream HTML based on the user's request.

β€’4m read timeβ€’From blog.anishde.dev
Post cover image
Table of contents
What is NextJS Middleware?Getting Started with NextJS 12Wrapping Up
2 Comments

Sort: