I am trying to deploy next js app on cPanel. I have installed node and npm on it. How can I deploy the next js app on this set up?
I am getting the following error while trying to build the app on cpanel terminal:
Unhandled rejection TypeError: child.send is not a function
npm run build
) which is defined in package.json andnpm run start
. But currently it is not possible to run custom scripts with PussionPassanger which is used in cPanel. It works only by takingapp.js
file as entrypoint. – Allotteeapp.js
you mean?do i have to select it asApplication startup file
when creating nodejs application? – Saltine