How to deploy nextjs in a web hosting
Unanswered
Standard Chinchilla posted this in #help-forum
Standard ChinchillaOP
How do I deploy my nextjs app to my web hotel?
I have used the build command, but unlike reactjs there's no build folder or clear explanation on how to do it
I have used the build command, but unlike reactjs there's no build folder or clear explanation on how to do it
2 Replies
Canadian Eskimo Dog
npm run build
npm run start
That's all it takes
npm run start
That's all it takes
Alapaha Blue Blood Bulldog
This really depends on your web host's capabilities. If you have the capability to run a Node.js application, then the above commands will be your starting point. You can also look at
next export if you're hosting static content only.