I am trying to use matcher in my Next js middleware but documentation doesnt say much on how to implement the functionality.
All it shows is this without explaining which file it goes in or how to use the config in the middleware file:
export const config = {
matcher: '/about/:path*',
}
Does anyone have a working example of how to set up the matcher for a middleware file in Next js?
Thank you.