How to Modify Middleware to Handle Two Route Groups in Next.js
I’m working on a Next.js project where I have two route groups, (auth) which contains my auth pages and (root) which contains the dashbaord and other pages and a homepage “/. I have a middleware function that redirects requests to the sign-in path found in the (auth) route group “(auth)/sign-in”