Overview
Master the implementation of type-safe server actions in Next.js through a comprehensive tutorial that demonstrates integration with next-safe-action and Sentry for robust error handling and logging. Build a full-stack application while exploring essential concepts including creating a safe action client, implementing customer and ticket actions, utilizing the useAction hook, adding ShadCN toast notifications for user feedback, and setting up detailed error tracking with Sentry. Gain hands-on experience with modern technologies like TypeScript, Tailwind CSS, Neon Postgres, and Kinde Auth while following practical examples and best practices for building secure, production-ready server actions.
Syllabus
Intro
Tech Stack
User Stories Checklist
Installing next-safe-action
Create the Safe Action Client
saveCustomerAction
useAction hook
ShadCN toast notifications
Display feedback from useAction
Testing the server action
Viewing errors in Sentry
saveTicketAction
useAction in Ticket Form
Testing the Ticket Form
Final Additions
Taught by
Dave Gray