I trying to make nextjs dynamic route public
export default authMiddleware({
publicRoutes : ['/','/account','/contact','/order','/product/[category]']
});
it is giving me error when i am applying it , Please help me, i coudnt find any detail in docs
Try adding "([^/.])", so it'll look like '/product/([^/.])', that saved me.