How can I match dynamic routes in NextJS middleware functions?
I’m trying to make NextJS middleware mark dynamic routea under /dashboard/[user]
as protected thereby performing auth checks when navigating to and from such route. However, I have been unable to do that using the convention /dashboard/:path*
or /dashboard/(path)