Next.js Discord

Discord Forum

Fresh NextJs deployment - 404 not found

Answered
Western yellowjacket posted this in #help-forum
Open in Discord
Western yellowjacketOP
Hey there, I literally created a new app with:
npx create-next-app

Then pushed it to Github, and then deployed it in NextJs.

Now I get this annoying 404 error.

I've tried everything I can think of, but cant find what's wrong.

I've gone through this checklist (https://vercel.com/docs/errors/NOT_FOUND), there are no errors in the build logs...
Does anyone have any ideas?

It builds and work locally
Answered by linesofcode
View full answer

7 Replies

Hey @Western yellowjacket
Go to your project settings in vercel
Answer
Make sure the framework is set to nextjs
Western yellowjacketOP
Yay it works, thanks so much!!!

It was set to 'Other', I would have imagined it'd be set to NextJS by default. Perhaps there was an issue in automatic detection somehow....
:Pray:
no problem