Before you begin
- A Node.js app created in cPanel.
- The app root contains your Express project with
package.json.
Wire up the export
Use environment variables
Express reads fromprocess.env. Add variables in the cPanel UI under Environment variables, then restart for them to take effect:
Common issues
POST requests return an empty body
POST requests return an empty body
Add the JSON parser middleware:
app.use(express.json()). For form data: app.use(express.urlencoded({ extended: true })).CORS errors from a frontend on a different domain
CORS errors from a frontend on a different domain
Install
cors, mount before your routes:Need a hand?
Open a ticket
Best for anything that needs an account check or a config change on our end.
Live chat
Faster for quick questions during business hours.

