Module · Intermediate · 1h 15m
Module 2: Actions, auth and shipping
Mutations with server actions, protecting routes, environment configuration and a production deploy.
- nextjs
- react
- module
Inside this module
- Write a server action with validation
- Protect routes on the server
- Deploy with environment variables
The full module opens with a membership that covers Next.js.
Sign in if you already subscribe.
Sign inLessons
- 01Server actions and forms
Lesson · 25 min · Mutations as functions that run on the server, called from forms and buttons, with validation and errors.
- 02Protecting routes
Lesson · 25 min · Session checks on the server, redirects, and why client-side guards are not protection.
- 03Environment and deployment
Lesson · 25 min · Configuration per environment, secrets, and a first production deploy with previews per branch.

