Application overview, onboarding guide, and architecture diagrams
The app is a single Next.js deployment unit (no separate backend service) talking to two external managed services: a PostgreSQL database via Prisma, and Supabase Storage for private document objects, accessed through short-lived signed URLs rather than public buckets.
middleware.ts and getServerSession.prisma generate and prisma db push against the configured DATABASE_URL before the app starts.