I think I found the issue on my side, I have replaced the server call with an API call in the auth.config.ts - authorize function (next-auth-v5 latest beta), and then “npm run build” passed and vercel deployment passed as well.