menu_book Course Curriculum (Astro) expand_more
Components
Pages & Routing
Layouts & Content
Styling
Islands
Data & Server
Rendering
Server actions
Learn Server actions in Astro with a dedicated explanation, topic-specific example, edge guidance, and mastery check.
12 min read
•
Intermediate
astro-057.astro
astro
export const server = { save: defineAction({ input:z.object({name:z.string()}), handler:async({name})=>({saved:name}) }) };
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content