Next.js Discord

Discord Forum

Deploy NEXT APP ROUTER to CPANEL

Unanswered
Round sardinella posted this in #help-forum
Open in Discord
Round sardinellaOP
Please , how do I deploy my nextJS app using Cpanel. My Cpanel has node enabled

3 Replies

To be completely blunt, and I know this answer isn't particularly helpful, but CPanel is incredibly outdated, I was surprised to see it mentioned, thought it was long gone.
I know you most likely don't have an option to switch providers due to business requirements/etc, but if you do, I would highly recommend switching to almost anything else.

[Vercel](https://vercel.com/) is obviously a solid, easy choice

You can also containerize the app using Docker and use something like Google Cloud, AWS, really anything that can run a docker container on the web
But... there does look to be a guide on someone achieving hosting Next.js on CPanel, so I'd probably point you to that:

https://medium.com/@geevadon/how-to-deploy-a-next-js-app-on-cpanel-efficiently-c00c5eb860de

Preface, the guide does look to be a couple years old, and Next has changed quite a lot since then. If you're using Next13+ I'd make sure to check you're following the right documentation based on the router you're using.