# Add-in deployment under `/addin/`

The MyGeotab Add-in is a **Vite static build**, not part of the Next.js dashboard bundle.

## Production URLs

| URL | Purpose |
|-----|---------|
| https://app.cleraladdins.com/ | Next.js dashboard |
| https://app.cleraladdins.com/addin/ | Vite Add-in |
| https://app.cleraladdins.com/addin/manifest.json | Add-in manifest |

## Build

```bash
npm run build -w @cleral/addin
```

Output: `apps/addin/dist/`

Vite is configured with `base: "/addin/"`, so JS/CSS asset paths are prefixed correctly.

## Hosting requirement

Point a reverse proxy or static host so:

- `app.cleraladdins.com/addin/*` → contents of `apps/addin/dist/`
- all other `app.cleraladdins.com` paths → Next.js dashboard

Do not expect Next.js to serve the Vite app unless you explicitly mount the static files.

See `docs/architecture/system-architecture.md` for a full Nginx sketch and architecture context.
