404 Error when Deployed to Vercel #1096
Unanswered
Lightgaming
asked this question in
Help
Replies: 1 comment 10 replies
-
Hi there, it should be |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
So I have a school project that uses Next.js and I implemented your auth framework to handle the authentication part. (lovely framework btw :D)
Everything works fine when I run it locally but when I deploy it to Vercel the dynamic routes return 404
At first, I thought it was an NEXTAUTH_URL error, but it's doing the correct requests.
Then I saw a post about having an api folder next to the pages folder, which I have fixed - it's now called backend.
Folder Structure:
/backend
/pages/api/[...nextauth].ts
/pages/_app.ts
...
Here is the Vercel Build Log:
Please Help me.
Beta Was this translation helpful? Give feedback.
All reactions