Next.js + Vercel + Auth0 preview SignOn callback getting strange 404 error


I’m using Next.js + Vercel hosting. It works on localhost:3000 but when I test it in preview environment, I can see the sign on page but upon sign on, it gives me an error seems to come from Next.js/vercel:

Code: DEPLOYMENT_NOT_FOUND might be available. Click here to learn how to assign it to a project.

My redirect uri is:

It’s deployed at

Please help!