Deployment
Vercel serverless API
The API entrypoint is api/index.ts, which bridges Node IncomingMessage / ServerResponse to the Hono Fetch API app.
Deployment steps
- Provision PostgreSQL and Valkey.
- Apply SQL migrations.
- Configure runtime settings through the approved secret/configuration manager.
- Deploy the API.
- Hit
/api/health. - Hit
/api/statusand verify external services. - Seed the first super admin or configured admin user.
- Configure scheduled jobs.
Rollback strategy
- Roll back application deployment first.
- Roll back migrations only when a backward-incompatible schema change was introduced and a tested down migration exists.
- Preserve audit logs and attendance records before any data correction.