How to Deploy a Next.js App Secured By Auth0 to Vercel

hi @byron.motoche

Blockquote

im testing in production, and by default, it had preview and production selected in vercel
I am currently using a pages router for my app
I am getting no error log on vercel at /api/auth/callback
I get a call to /api/auth/login when logging in
and then a call to /api/auth/me sometimes after a few minutes for some reason

it registers as a login on auth0, however:
image

then:
image

my auth0 log also reflects a successful login with no error

running npm next version gives:
Next.js v13.4.12

and npm -v auth0/nextjs-auth0 returns
9.5.0

here’s my error -just a generic error page after I press continue on my universal login page
there’s a code and state in the url

don’t know if this is relevant, why this happens, or if it’s normal, but the state in the URL parameters changes from what it is in the universal login page’s URL to the /api/auth/callback state on the error page