# Vigor Group website

Corporate website for Vigor Group, built with React, TanStack Start, and Vite.

## Local development

Use Node.js 20 or newer and npm:

```sh
npm ci
npm run dev
```

## Deploy to Vercel

Import the Git repository in Vercel. Keep the framework preset as **Other** and
the build command as `npm run build`. The build creates Vercel's Build Output
API bundle in `.vercel/output`. No Lovable account or integration is required.

For feedback and whistleblower email delivery through your cPanel mailbox,
configure these environment variables in Vercel:

- `SMTP_HOST` (the outgoing mail server shown by cPanel)
- `SMTP_PORT` (`465` for SSL or `587` for STARTTLS)
- `SMTP_USER` (the complete cPanel email address)
- `SMTP_PASSWORD` (the email account password)
- `SMTP_FROM_EMAIL` (for example `Vigor Group <website@turkysgroup.co.tz>`)

Find these values under **cPanel → Email Accounts → Connect Devices**. Never
commit the SMTP password to Git.

## Deploy to cPanel

This app uses server-side rendering. Your cPanel plan must include **Setup
Node.js App**; static-only shared hosting cannot run the full app.

1. Run `npm ci` and `npm run build:cpanel` locally.
2. Upload the contents of `.output-cpanel` into the cPanel Node.js app directory.
3. Set the startup file to `server/index.mjs`.
4. Add the email environment variables listed above and restart the app.

Test the production cPanel build locally with `npm run start:cpanel`.
