Settings
Local configuration · cloud-ready structure
Environment
- Database: SQLite via Prisma (
prisma/dev.db) - Documents:
storage/documents/ - Source folders:
EMPLOYEES_SOURCE_PATHin.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
- Change Prisma datasource to PostgreSQL
- Point STORAGE_PATH / uploads to S3
- Deploy Next.js to Vercel / Railway / VPS
- Add auth (NextAuth) for multi-user