The BEST Way To Create Server Actions - Next.js

Опубликовано: 11 Март 2026
на канале: Brett Westwood - Software Engineer
1,873
75

My fav place to learn to code is Scrimba

Get 20% off a subscription with my link 👇
https://scrimba.com/?via=brettwestwood

zsa is a library that allows for developers to create typesafe server actions inside a Next.js application.

zsa actually stands for Zod Server Actions and utilizes zod for creating type safety within your code.

We will go over how to create server actions with the zsa library, how to create procedures (aka middleware) and much more.

Timestamps
0:00 Intro
0:32 What is zsa (Zod Server Actions)?
1:43 Creating Your First Server Action
4:20 useServerAction() Hook on client side
9:28 Creating Procedures for your server actions
15:30 Quickly Going Over some other zsa library features
18:10 Outro