Coding task · Next.js course · Module 9: Integrations and Advanced Features
Server Action with Error Handling
Implement a Server Action with data validation and error handling.
Task
Write a Server Action that validates form data and returns a structured result with a success field and an optional error.