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.
2 Comments
Sort: