Next.js Discord

Discord Forum

Facing a problem deploying the 'Acme' course app to Vercel

Answered
English Angora posted this in #help-forum
Open in Discord
English AngoraOP
Here i am, i finished the course on the nex.js site, and i would have liked to upload on Vercel.
Everything works fine when i'm working on local version, but on the vercel deploy it shows me this message in the image.

That's are the two messages that appear in the log:
1. [GET] [middleware: "middleware"] / reason=EDGE_FUNCTION_INVOCATION_FAILED, status=500, user_error=true
2. TypeError: Invalid URL string.
at (node_modules/next-auth/lib/env.js:8:34)
at (node_modules/next-auth/lib/index.js:119:20)
at (node_modules/next-auth/lib/index.js:91:19)
at (node_modules/next/dist/esm/server/web/adapter.js:152:22)
at (node_modules/next/dist/esm/server/async-storage/request-async-storage-wrapper.js:72:23)
at (node_modules/next/dist/esm/server/web/adapter.js:139:52).

The other files are te same from the course.
I think there is a problem by providing the url for nextauth, but i cant get it. Can you help me? I'm new and maybe is something really easy to solve...
Answered by English Angora
Ok i solved alone this thing!
View full answer

2 Replies

English AngoraOP
I noticed that everyone on git get's the same error, i sat up manually 'NEXTAUTH_URL' link "https://learning-next-js-omega-topaz.vercel.app/", it gets 404 error after the login.
I understood that there is an error on pathing maybe...
Anyway those are the new logs from vercel.
And i provide you the zip file with the whole app, hoping someone can help me...

EDIT: Ill show you the same problem from others
https://github.com/search?q=Acme%20next.js&type=repositories

In specific mine problem is like this> https://github.com/Pieta9221/ACME_NextJS > https://acme-next-js-three.vercel.app/
But they can't even reach the login form
English AngoraOP
Ok i solved alone this thing!
Answer