An Intro to Middleware in NextJS 12


NextJS 12 was announced yesterday at the NextJS Conf and they announced a new feature called middleware which allows one to modify the response to a request before it is even completed. This can be in the form of a rewrite, redirect, adding headers, or even streaming HTMl.

image
Anish De Hacker Noon profile picture

Anish De

14 • Tech Enthusiast • Tech YouTuber • Blogs about Development • Developer

Anish De Hacker Noon profile picture

Tags

Join Hacker Noon