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

Hi,

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:

404: NOT_FOUND
Code: DEPLOYMENT_NOT_FOUND


yasuke-git-auth-yjyjyjy.vercel.app might be available. Click here to learn how to assign it to a project.

My redirect uri is:
https://yasuke-git-auth-yjyjyjy.vercel.app/api/auth/callback?code=YVqT0pCd4YDHZf2dz40mioiZoZh7QrXyWNKhAr395W8OH&state=eyJyZXR1cm5UbyI6Imh0dHBzOi8veWFzdWtlLWdpdC1hdXRoLXlqeWp5ankudmVyY2VsLmFwcCJ9

It’s deployed at https://yasuke-git-auth-yjyjyjy.vercel.app/

Please help!

Hey team!

This topic seems related to the new Auth0 Integration available new in Vercel Marketplace. This is the first version of this integration, and we welcome your feedback to improve future iterations.

You’ll need an existing Vercel project to use the new integration to build and customize the Identity flow. You can either import your project into Vercel or use a Vercel template so you don’t have to start from scratch like our SaaStart template to deploy a production-ready B2B SaaS app in minutes (learn more here).

If you find yourself having questions regarding this new integration for the next two weeks, we are hosting an Ask Me Anything session. Our Product Expert will provide comprehensive written answers on August 8th from 8 AM to 10 AM PST.

Find out more about Auth0 Integration and learn more about AMA.

Thanks!
Dawid