Next.js Discord

Discord Forum

Vercel deployment not working for app, showing not found.

Unanswered
JCo posted this in #help-forum
Open in Discord
JCoOP
I have a locally built app that is just the NextJS boilerplate with Shadcn-ui implemented and it works fine, no issues on localhost. However the same code when pushed to vercel is showing a complete error list and displaying not found meaning that the code isn't working? I don't know what is happening but the app just doesn't work at all. as you can see from the first two screenshots, the app does work locally, and in the second, not on vercel.

Does anyone know how I can fix this?

14 Replies

it failed to show anything after successful build deploy. those checks only check the rendered page AFTER deployment.
not sure why you are arguing with me. deploy it with passing status checks and it will show.
JCoOP
I ended up removing the pnpm part, letting it decide, and even tho the app uses pnpm in the local env and configs, it used yarn and worked on vercel... Is this an issue with PNPM on vercel?
advanced build commands are for advanced cases
@DirtyCajunRice | AppDir not sure why you are arguing with me. deploy it with passing status checks and it will show.
JCoOP
I checked... it was deployed. the source was built correctly and showed all the pages. and using the same build commands etc locally it displayed. Only showed stuff after removing pnpm from the install and build. IDK why. I knew it was building properly. just want showing anything so the check that accesses the page failed.
@DirtyCajunRice | AppDir advanced build commands are for advanced cases
JCoOP
Yeah, seems making it use pnpm broke it or something, have a feeling vercel doesnt read .pnpm folder.
99.99% of the time you dont want to touch those fields
counterintuitive coming from other platforms, but vercel does stuff a very specific way “automagically”
JCoOP
yeah... work had me deploying a similar app using pnpm to an ubuntu server to host our next apps... so this just... messed with me when it didnt work lol.
In your project settings in vercel
Confirm that the framework is set to nextjs
It’s usually auto detected when the project is created