Wrote an article
Just wrote an article on middleware in NextJS 12
https://blog.anishde.dev/middleware-in-nextjs-12-what-are-they-and-how-to-get-started-with-them