Next.js Discord

Discord Forum

How to host next app directory project in cpanel that has node.js support?

Unanswered
White-chinned Petrel posted this in #help-forum
Open in Discord
White-chinned PetrelOP
I've been trying to host my next13 project following the same process as next12 by creating a server.js file as per docs and creating a node.js app. However, the website just returns empty page with no errors at all. I can't figure out what I'm doing wrong.

3 Replies

Have you tried just doing a static export of your project and deploying the out directory?

https://nextjs.org/docs/app/building-your-application/deploying/static-exports
Are you using the app router? If you are then the only option you have is to host your app on Vercel until they implement support for a custom server for the app router.