Deployment
Build, migrate, and production secrets.
Processes
| Process | Command | Purpose |
|---|---|---|
| Web | npm run migrate && next start | Site, dashboard, portal, GraphQL |
railway.toml builds with keystone build --no-ui && next build and migrates in the start command.
Provision
PostgreSQL, an S3-compatible bucket, and SMTP.
Secrets
Set DATABASE_URL, SESSION_SECRET, MACHINE_CREDENTIAL_PEPPER, and INTEGRATION_CREDENTIAL_KEY (base64url, 32 bytes). Keep the pepper and key stable; changing them makes stored credentials unreadable.
Storage and mail
All five S3_* values for documents. SMTP_* and SMTP_STORE_LINK for reset, portal, and message email.
Webhooks
List destination hosts in WEBHOOK_ALLOWED_HOSTS. Webhooks are sent on the request that causes them and go to no other host. There are no background workers or timers.
Verify
Run npm run typecheck, npm run lint, and npm test, then onboard the firm at /dashboard/onboarding.
GraphQL accepts POST only, with a 1 MB body limit and 10 MB / 5 files for uploads. Lists return at most 100 items per query. Introspection is off. See Getting started for every variable.