Asked By: Anonymous
I followed these steps to deploy my nextjs on cPanel.
- go to package.json and add this line:
next buildto have
.nextfolder as my build folder
cpanel >> file manager >> public_htmlfolder and upload the contetn of
.nextfolder to this directory
add or edit this file:
but when I go to the website I face this:
Do you know what is wrong with this?
Answered By: Anonymous
.nextdoesn’t have index.html file.
- Seems like you have server side (mostly using nodejs), but unfortunately you couldn’t run that server side from cpanel.
- As I know, you should use
next exportinstead of
next buildif you tend to have frontend side only.
But the most important thing is number 1, make sure you have
index.html inside your