Skip to content
Discussion options

You must be logged in to vote

I had the same issue. I set up different projects to try to pinpoint the problem.

I noticed my faulty project had the wrong "Build & Development Settings" in the project settings on Vercel.

It was set to "other" instead of "Next.js", which caused it to build differently with npm run vercel-build.

Can you verify if these settings are set to "NextJS"? Switching it to "NextJS" did the trick for me.

Replies: 11 comments

Comment options

You must be logged in to vote
0 replies

This comment was marked as off-topic.

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies

This comment was marked as off-topic.

Comment options

You must be logged in to vote
0 replies
Answer selected by samcx
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
bug Issue was opened via the bug report template. Runtime Related to Node.js or Edge Runtime with Next.js.
10 participants
Converted from issue

This discussion was converted from issue #58140 on January 07, 2025 18:30.