deploy next.js app
Answered
Tomistoma posted this in #help-forum
TomistomaOP
can I deploy next.js app on normal FTP server?
Answered by B33fb0n3
you do the same that you would run when you start your server locally. Normally it's
you might need to use the command
next build (to create all important files) and then next start (to start the server)you might need to use the command
npm run-script build19 Replies
@Tomistoma can I deploy next.js app on normal FTP server?
you can deploy it everywhere, where nodejs can run. Iirc ftp can run nodejs
TomistomaOP
ok, so node.js
TomistomaOP
i am trying deploy on vercel
now
what I have to do when I deploy on ftp server?
on vercel it works 👍
TomistomaOP
for example I upload files to ftp
what next?
@Tomistoma what I have to do when I deploy on ftp server?
you do the same that you would run when you start your server locally. Normally it's
you might need to use the command
next build (to create all important files) and then next start (to start the server)you might need to use the command
npm run-script buildAnswer
TomistomaOP
ok I understand
Is your issue solved like that?
TomistomaOP
one question
I type next build
and I get error
bash: next: command not found
you might need to use the command
npm run-script buildTomistomaOP
thanks
happy to help