How to deploy Next.js app to Vercel
Unanswered
Eastern yellowjacket posted this in #help-forum
Eastern yellowjacketOP
Hi, everyone.
I have my Next.js project, and I build it using "npm run build" command. And I pushed .next folder to my Github, and I hosted my repository to vercel. But it shows 404 in the first page.
Is there anybody who can help me to deploy next.js project?
I have my Next.js project, and I build it using "npm run build" command. And I pushed .next folder to my Github, and I hosted my repository to vercel. But it shows 404 in the first page.
Is there anybody who can help me to deploy next.js project?
33 Replies
dont do any of that
push the actual project
dont push the .next folder at all
should work
Eastern yellowjacketOP
Please help me once more.
paste your next config
Eastern yellowjacketOP
Here is my next.config.js
const nextConfig = {
reactStrictMode: true,
}
module.exports = nextConfig
Is this not correct?
const nextConfig = {
reactStrictMode: true,
}
module.exports = nextConfig
Is this not correct?
yeah thats fine… but… the error you are getting says something completely different
share the github repo you used to deploy on vercel
do you have a dist folder?
Eastern yellowjacketOP
No I don't have
how to make it?
i think he has a bunch of stuff pushed still that shouldn’t be pushed
is your repo public?
Eastern yellowjacketOP
yeah
i dont see anything wrong
did you change any settings in deployment?
Eastern yellowjacketOP
just clicked deploy button.
maybe its something to do with pages. i dont have any experience with pages so we will need to wait for someone who does
The github repo also has the green tick
Indicating successful deployment
Well… thats great? haha.
Eastern yellowjacketOP
🙠🙠🙠Oh my gosh
Let me try again
Eastern yellowjacketOP
Still shows error, but deployed! 😂
Eastern yellowjacketOP
Thank you, everyone.
Everybody, could you please help me a little if you can.
@Eastern yellowjacket Everybody, could you please help me a little if you can.
create a new post if its a different problem
Eastern yellowjacketOP
nothing, just want you to give my repository a star if you can
@Eastern yellowjacket nothing, just want you to give my repository a star if you can
you can post it in #showcase in that case
