Error handling upgrade request TypeError: Cannot read properties of undefined (reading 'bind') #68716
Unanswered
Alisadaintanvir
asked this question in
App Router
Replies: 1 comment
-
|
Hi!! As you want to do a regex, you can remove those quotes, scape all foward slashes, the dot in export const config = {
matcher: [/\/(?!api|\/_next\/static|\/_next\/image|\/favicon\.ico).*/],
}; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This error occurs while adding matcher in my middleware.
`import { authConfig } from "./auth.config";
import NextAuth from "next-auth";
export const { auth: middleware } = NextAuth(authConfig);
export const config = {
matcher: ["/((?!api|_next/static|_next/image|favicon.ico).*)"],
};
`
what to do??
I am using next js latest version
Beta Was this translation helpful? Give feedback.
All reactions