AI Chat Build a complete AI chat application with database persistence, chat list management, and automatic title generation. Prerequisites Complete these recipes first (in order): Type-Safe Environment Configuration with better-env Use better-env config modules for type-safe server/public env access, feature flags, and either-or credential constraints. Neon + Drizzle Setup Connect a Next.js app to Neon Postgres using Drizzle ORM with optimized connection pooling for Vercel serverless functions. Next.js on Vercel Create a Next.js app running on Bun, configure the development environment, and…