Next.js Discord

Discord Forum

next.js build works and JS works locally with next dev but lots of JS 404s when deployed to vercel

Unanswered
Asiatic Lion posted this in #help-forum
Open in Discord
Asiatic LionOP
I am trying to deploy a project to vercel and while the build works and is deployed correctly, the javascript doesn't work at all when deployed to Vercel.

I need help with this (privately if possible to resolve)

When the project is built with next build locally the site works with no 404s but when deployed to Vercel the 404s start showing on slug URLs e.g. [slug].jsx

I have spent 48 hours trying to understand why this isn't working when deployed to no avail. 😫

Help will be greatly appreciated.

3 Replies

Asiatic LionOP
bump
Asiatic LionOP
please help
American Crow
Well what do the vercel server logs say