Learn to create middleware in Next JS and how to project routes with example.
Here in this video I have described how you can add middleware and allow authenticated users to visit some URLs while unauthenticated users will still land to login page.
source code link
https://codingmstr.com/project/add-mi...