when i'm redirecting to page it always redirect me to the /home
this happens only on vercel, on my local development everything works fine
export default withAuth({
callbacks: {
authorized({ token }) {
return !!token
},
},
pages: {
signIn: '/home',
signOut: '/',
error: '/',
},
})
export const config = { matcher: [
"/home",
"/character/(.*)",
"/admin/(.*)",
] }
this is my middleware.ts