How to host Nextjs app using CPanel?
Unanswered
Shayokh posted this in #help-forum
ShayokhOP
I have account in a hosting service called Mellowhost https://mellowhost.com/. It offers CPanel but I have never hosted a NextJs project using CPanel. All this time I have been using vercel. Can someone please provide me the steps of uploading NextJs app to CPanel.
Note: I have tried searching but most of the tutorials are outdated to
Note: I have tried searching but most of the tutorials are outdated to
pages route. My application is in app route.9 Replies
IIRC, you can only deploy static build to Cpanel
@"use php" IIRC, you can only deploy static build to Cpanel
ShayokhOP
Umm can you explain please?
You can only deploy [static export](https://nextjs.org/docs/app/building-your-application/deploying/static-exports) to cpanel
@"use php" You can only deploy [static export](<https://nextjs.org/docs/app/building-your-application/deploying/static-exports>) to cpanel
ShayokhOP
Okay so what to do after building?
It's asking for these info
I'll let you know when I'm free
You can follow these steps:
https://shaxadd.medium.com/deployment-pipeline-tutorial-deploy-react-app-to-cpanel-via-github-actions-0378721f803d
Everything is same except commands, and maybe output dir
https://shaxadd.medium.com/deployment-pipeline-tutorial-deploy-react-app-to-cpanel-via-github-actions-0378721f803d
Everything is same except commands, and maybe output dir
@Shayokh if resolved, mark above message as solution