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

**URL:** <https://community.auth0.com/t/next-js-vercel-auth0-preview-signon-callback-getting-strange-404-error/90417>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [September 12, 2022, 9:54am UTC](https://community.auth0.com/t/next-js-vercel-auth0-preview-signon-callback-getting-strange-404-error/90417 "2022-09-12T09:54:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![junyu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/junyu/32/39853_2.png) [@junyu](https://community.auth0.com/u/junyu)\
**Post date:** [September 12, 2022, 9:54am UTC](https://community.auth0.com/t/next-js-vercel-auth0-preview-signon-callback-getting-strange-404-error/90417/1 "2022-09-12T09:54:19Z")

</div>

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.  
 ](https://vercel.com/docs/custom-domains#assigning-a-domain-to-a-git-branch)

My redirect uri is:  
[https://yasuke-git-auth-yjyjyjy.vercel.app/api/auth/callback?code=YVqT0pCd4YDHZf2dz40mioiZoZh7QrXyWNKhAr395W8OH&state=eyJyZXR1cm5UbyI6Imh0dHBzOi8veWFzdWtlLWdpdC1hdXRoLXlqeWp5ankudmVyY2VsLmFwcCJ9](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/](https://yasuke-git-auth-yjyjyjy.vercel.app/)

Please help!

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [July 31, 2024, 9:08pm UTC](https://community.auth0.com/t/next-js-vercel-auth0-preview-signon-callback-getting-strange-404-error/90417/2 "2024-07-31T21:08:54Z")

</div>

Hey team!

This topic seems related to the new [Auth0 Integration](https://auth0.com/blog/auth0-vercel-integration/) available new in [Vercel Marketplace](https://vercel.com/integrations/auth0). This is the first version of this integration, and we welcome your feedback to improve future iterations.

You’ll need an [existing Vercel project](https://vercel.com/docs/projects/overview) 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](https://auth0.com/blog/speed-up-your-customer-identity-journey-with-auth0-saastart/)).

If you find yourself having questions regarding this new integration for the next two weeks, we are hosting an [Ask Me Anything session](https://community.auth0.com/t/auth0-community-ask-me-anything-integrating-auth0-within-the-vercel-marketplace/136388). Our Product Expert will provide comprehensive written answers on August 8th from 8 AM to 10 AM PST.

Find out more about [Auth0 Integration](https://auth0.com/blog/auth0-vercel-integration/) and [learn more about AMA](https://community.auth0.com/t/auth0-community-ask-me-anything-integrating-auth0-within-the-vercel-marketplace/136388).

Thanks!  
Dawid

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 6, 2024, 12:26am UTC](https://community.auth0.com/t/next-js-vercel-auth0-preview-signon-callback-getting-strange-404-error/90417/3 "2024-12-06T00:26:43Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
