Need Help Integrating Auth0 with Existing Next.js Project on Vercel

I’m working on integrating Auth0 authentication into an existing Next.js project hosted on Vercel. Despite following the Auth0 Next.js SDK documentation, I’m encountering several issues during implementation.
Specific Challenges:

  1. Configuration Issues
    Getting 500 errors during authentication flow

Error: Missing required configuration: baseURL

  1. Redirect Problems
    Successful login doesn’t redirect properly to /dashboard
    Callback URLs seem mismatched despite correct settings

  2. Vercel-Specific Concerns
    How to properly set environment variables in Vercel
    Differences between local development and production configuration

What I’ve Tried:

  • Followed Auth0’s Next.js quickstart guide
  • Configured callback/logout URLs in Auth0 dashboard
  • Set up middleware and route handlers
  • Verified environment variables locally and in Vercel

ALSO I HAVE SET IT ON LOCAL
HERE I AM ABLE TO SIGN IN AND SIGN UP - But it doesnt redirect to required site gives error400 and error500 erros

I want help in sorting this out .
Even a Google meet will work !!

Hi @devops17

I have replied to you on your initial post here.

Let’s continue the discussion there if necessary regarding the issue at hand!

Kind Regards,
Nik