# Version 1.7.1 cPanel Startup Hotfix

This fixes the cPanel/LiteSpeed error:

`Error [ERR_REQUIRE_ASYNC_MODULE]: require() cannot be used on an ESM graph with top-level await`

## Cause

Some cPanel/LiteSpeed Node runners start the application by doing `require(app.js)`.
The previous `app.js` was an ES module that imported an ESM graph containing top-level await from `src/db.js`.

## Fix

- Root `package.json` no longer sets `"type": "module"`.
- `app.js` is now CommonJS and uses dynamic `import('./src/index.js')`.
- `src/package.json` sets `"type": "module"` so all existing source files remain ESM.

## cPanel settings

Keep:

- Application root: `demo.recovermissedcall.com`
- Application startup file: `app.js`
- Node.js version: `20.x`
