Server Actions in Next.js App Router: Production Form Patterns for Validation, Errors, and Optimistic UI
A production-ready guide to Next.js Server Actions form validation with Zod, structured error handling, progressive enhancement, optimistic UI, and rate limiting — plus when to choose Server Actions vs API routes.