This Is The Way.. Next.jsΒ ServerΒ ActionsΒ with next-safe-action & Sentry @DaveGrayTeachesCode
This Is The Way.. Next.jsΒ ServerΒ ActionsΒ with next-safe-action & Sentry  @DaveGrayTeachesCode
Uploaded December 2024 | Updated November 2026, 1 day ago
Learn an outstanding pattern for Next.js server actions with next-safe-action and Sentry. You will create type-safe server actions with built-in error handling and detailed error logs. This is the way!

⭐ Use the code "davegray" for 3 months free on the Team plan of Sentry for any new accounts:
- Sentry Homepage: bit.ly/sentry-dg
- Sentry Sign-up: bit.ly/try-sentry-dg
- Sentry Next.js: bit.ly/sentry-nextjs-dg
- Sentry Next.js Docs: bit.ly/sentry-docs-dg

πŸ”₯ Neon Postgres: https://fyi.neon.tech/davegray

πŸ”’ Kinde Auth: kinde.com/dgray-nextjsstack

πŸ‘‰ Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap

πŸ’– Support me on Patreon ➜ patreon.com/davegray

🚩 Subscribe ➜ bit.ly/3nGHmNn

πŸ“¬ Course Updates ➜ https://courses.davegray.codes/

❓ Ask Questions & Discuss on Discord ➜ discord.gg/neKghyefqh

β˜• Buy Me A Coffee ➜ buymeacoffee.com/davegray

πŸ”— Next.js Full Stack Project playlist: youtube.com/playlist?list=PL0Zuz27SZ-6PCLz7VMP2QQdeKa83rshe5

πŸ‘‡ Follow Me On Social Media:
GitHub: github.com/gitdagray
Twitter: twitter.com/yesdavidgray
LinkedIn: linkedin.com/in/davidagray

πŸ”— Course Resources: github.com/gitdagray/nextjs-full-stack-project

This Is The Way.. Next.js Server Actions with next-safe-action & Sentry

(0:00:00) Intro
(0:01:03) Tech Stack
(0:01:23) User Stories Checklist
(0:03:03) Installing next-safe-action
(0:05:17) Create the Safe Action Client
(0:13:26) saveCustomerAction
(0:33:00) useAction hook
(0:37:49) ShadCN toast notifications
(0:42:39) Display feedback from useAction
(0:55:53) Testing the server action
(1:05:50) Viewing errors in Sentry
(1:09:19) saveTicketAction
(1:16:16) useAction in Ticket Form
(1:20:28) Testing the Ticket Form
(1:22:17) Final Additions

πŸ“š Tutorial References:
πŸ”— Next.js: nextjs.org
πŸ”— ShadCN/ui: ui.shadcn.com
πŸ”— Sentry Next.js: bit.ly/sentry-nextjs-dg
πŸ”— Tailwind CSS: tailwindcss.com
πŸ”— TypeScript: typescriptlang.org
πŸ”— Drizzle ORM: https://orm.drizzle.team/
πŸ”— Neon Postgres: https://fyi.neon.tech/davegray
πŸ”— Kinde Auth: kinde.com/dgray-nextjsstack
πŸ”— next-safe-action: https://next-safe-action.dev/

Was this Next.js server actions tutorial with next-safe-action and Sentry helpful? If so, please share. Let me know your thoughts in the comments.

#nextjs #server #actions
This Is The Way.. Next.js Server Actions with next-safe-action & SentryHow Would You Solve This Code Problem?Waterfalls vs Parallel Requests in JavaScript with Promise.allAdd a Honeypot to Your Forms 🐝Python Django ORM Intro TutorialPython Django Admin tutorialPython Django Models and MigrationsNest.js REST API with Prisma ORM, Neon PostgresNext.js Tutorial for Beginners | Next.js 13Python Tutorial for Beginners with VS Code 🐍Build and Deploy a Next.js Blog with Remote MDX Content Files and Nextjs 13Why Beginners Need to Get Involved in Open Source with Eddie Jaoude
Dave Gray |

This Is The Way.. Next.jsΒ ServerΒ ActionsΒ with next-safe-action & Sentry

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER