Glossary: Next.js Beyond the Basics
"use server"
Also written: use server
A directive that marks the exported async functions in a file as server actions. Forms in the browser can call them, but they run on the server.
Glossary: Next.js Beyond the Basics
Also written: use server
A directive that marks the exported async functions in a file as server actions. Forms in the browser can call them, but they run on the server.