Next.js Discord

Discord Forum

deploy next.js app

Answered
Tomistoma posted this in #help-forum
Open in Discord
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 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 build
View full answer

19 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
@Tomistoma ok, so node.js
yes
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 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 build
Answer
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 build
TomistomaOP
thanks
happy to help