# NextJS + Vercel Application: api/auth/callback failing despite succeeding locally

**URL:** <https://community.auth0.com/t/nextjs-vercel-application-api-auth-callback-failing-despite-succeeding-locally/100233>\
**Category:** Get Help\
**Tags:** sdks-quickstarts, nextjs-auth0\
**Created:** [February 11, 2023, 12:37am UTC](https://community.auth0.com/t/nextjs-vercel-application-api-auth-callback-failing-despite-succeeding-locally/100233 "2023-02-11T00:37:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dev38](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dev38/32/33281_2.png) [@dev38](https://community.auth0.com/u/dev38)\
**Post date:** [February 11, 2023, 2:14pm UTC](https://community.auth0.com/t/nextjs-vercel-application-api-auth-callback-failing-despite-succeeding-locally/100233/2 "2023-02-11T14:14:11Z")

</div>

Hello there!

I’m facing the same issue, it seems to be coming out of nowhere.  
One thing that is odd tho’ is that we have a staging environment that shares the same Auth0’s configuration and for which everything works just fine.

So it might be an environment based issue.

---

_[View the full topic](https://community.auth0.com/t/nextjs-vercel-application-api-auth-callback-failing-despite-succeeding-locally/100233)._
