# Frontend (Next.js)

## Development

```bash
npm install
cp .env.local.example .env.local
npm run dev
```

App runs on `http://localhost:3022` in development.

## UAT on cPanel

Target domain: `https://test.diasporapropertymag.com`

1. In cPanel Node.js app setup:
	- Application root: `frontend`
	- Startup file: `server.js`
	- Node version: `20+`
2. Configure environment from `.env.uat.example`.
3. Build and restart app:

```bash
cp .env.uat.example .env.local
npm run build
```

`npm start` launches `server.js`, which is suitable for cPanel-managed Node apps.
