# Ready-to-deploy package

This package contains the **production build already compiled** for `https://www.capital-elite.net`, together with the full source code. No build step is needed on the server.

## Requirements

- Node.js 20.9 or newer (an LTS release is recommended) and npm
- A way to keep a Node process running (PM2 or systemd) and a web server in front for HTTPS (Nginx, Apache or similar)

## Deploy

1. Upload this zip to the server and unzip it.
2. From the unzipped folder, install the runtime dependencies. This also installs the image library that matches the server's operating system:

   ```bash
   npm ci --omit=dev
   ```

3. Start the site:

   ```bash
   npm start                # listens on port 3000
   PORT=8080 npm start      # or choose another port
   ```

4. Point the domain at that port through the web server, with HTTPS.

To keep it running after you close the terminal, use PM2:

```bash
pm2 start npm --name capital-elite -- start
pm2 save
```

## Check it works

- `/` redirects to `/ar` or `/en`; both pages load
- An unknown address such as `/en/test` shows the 404 page
- `/robots.txt` and `/sitemap.xml` load

## Good to know

- The build is made for `https://www.capital-elite.net`. If the live address is different, rebuild with the right address:

  ```bash
  npm ci
  NEXT_PUBLIC_SITE_URL=https://your-domain.com npm run build
  npm start
  ```

- The registration form is **not connected yet**: it does not send anything. Connect it in `lib/mock/submitInterest.ts` (then rebuild), as described in `README.md`.
- `README.md` has the full documentation (project structure, launch checklist, content to confirm).
