Current baseline: v55
Next package: v56

Current deployed baseline: v50.1
Next planned package: v51

CURRENT CANONICAL BASELINE
Version: v41
Status: CRM timeline edit and deletion governance refinement
Next planned package: v42

# Deploy Checklist

## Timeline governance reminder
- For packages that modify CRM timeline audit fields, include Prisma generate and db push in the terminal block.

## Schema-change reminder
- For packages that modify prisma/schema.prisma, run Prisma generate and db push before typecheck and build.

## Upload and Extract
1. Upload the returned canonical zip named dispatchspot-canonical-source-vX.zip to the server root.
2. Extract it directly into /home/dispatchspot/app.dispatchspot.com so files overwrite in place.
3. Confirm the extracted files land at project root and not inside a nested wrapper folder.

## Build Commands
```bash
cd /home/dispatchspot/app.dispatchspot.com
unzip -o dispatchspot-canonical-source-vX.zip
export PATH=/opt/cpanel/ea-nodejs22/bin:$PATH
node node_modules/typescript/bin/tsc --noEmit
node node_modules/next/dist/bin/next build
touch /home/dispatchspot/app.dispatchspot.com/tmp/restart.txt
```

## Restart
Use the environment's normal restart step. When applicable:
```bash
touch /home/dispatchspot/app.dispatchspot.com/tmp/restart.txt
```


## Notification and auth infrastructure checklist
- Configure SMTP credentials in the environment.
- Verify SPF, DKIM, and DMARC before production outbound email is enabled.
- Set sender identities for security, alerts, and system email categories.
- Confirm notification and auth token secrets are present.
- Verify delivery failure handling and bounce monitoring path.
- Confirm security-sensitive emails are logged and auditable.

## Billing and governance readiness checklist
- Confirm workspace subscription model remains workspace-scoped.
- Confirm feature gating can be centralized through an entitlement layer.
- Confirm Super Admin actions are audit-logged.
- Confirm controlled schema items use archive-safe governance instead of unsafe direct deletion.

- Run Prisma generate/db push for notification preference persistence changes.
