Settings

Local configuration · cloud-ready structure

Environment

  • Database: SQLite via Prisma (prisma/dev.db)
  • Documents: storage/documents/
  • Source folders: EMPLOYEES_SOURCE_PATH in .env

Alert thresholds

Fixed at 90 / 60 / 30 / 7 days and expired. Rebuild from the Alerts page after changing employee dates.

Email digests (optional)

Set in .env:

SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USER=...
SMTP_PASS=...
ALERT_EMAIL_TO=you@yousco.com

Then run npm run alerts:email via cron daily.

Cloud migration later

  1. Change Prisma datasource to PostgreSQL
  2. Point STORAGE_PATH / uploads to S3
  3. Deploy Next.js to Vercel / Railway / VPS
  4. Add auth (NextAuth) for multi-user