Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Next.js Server Actions with Next-Safe-Action and Sentry - Type-Safe Error Handling Tutorial

Dave Gray via YouTube

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

Reviews

Start your review of Next.js Server Actions with Next-Safe-Action and Sentry - Type-Safe Error Handling Tutorial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.