Client wants nextjs app ran on cpanel.
Unanswered
Cuban Crocodile posted this in #help-forum
Cuban CrocodileOP
Hello a client of mine wants a next.js app ran on their existing cpanel. after trying to figure out the node.js app in cpanel without luck. i saw that whilst running npm run build it runs out of memory..
Now i know i can add a cname and run the app on vercel. but that is eating into my "bandwith" on my vercel. Is there any way to bypass this? Other than making them create a github account and transfering the repo ownership? i would prefer to keep the repo in my github.
Now i know i can add a cname and run the app on vercel. but that is eating into my "bandwith" on my vercel. Is there any way to bypass this? Other than making them create a github account and transfering the repo ownership? i would prefer to keep the repo in my github.
3 Replies
cPanel is a poor fit for Next.js apps ! you can check this Static Export
next build && next export
This generates a out/ folder (pure HTML/CSS/JS). make sure no SSR or API routesCuban CrocodileOP
thats the problem my app contains ssr and api routes
@Cuban Crocodile thats the problem my app contains ssr and api routes
then I don't know the solutions!!! cpanel are not ideal for nextjs!!!! no edge run time