The current cPanel environment supports Node.js 14, which is not compatible with my application that requires Node.js 18+
I installed Node.js 18 using nvm on the terminal and it run without errors. but when I try to access the routes, I can only see the indexes.
nahom gebrecherkos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
If you need to access the routes publicly, set up a proxy from cPanel’s Apache/Nginx server to your Node.js server running on a custom port.
Configure the proxy via .htaccess, and then run nodejs server on a specific port.
Geeks Solutions is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.