Build reusable middleware for next-safe-action.
Guides implementation of next-safe-action middleware for access checks, logging, error handling, and reusable context extension.
When to use it
Use when implementing next-safe-action middleware, including pre-validation and post-validation middleware.
It changes how the agent implements middleware in the project, favoring use() unless the logic requires validated input.
What you provide
The guide works with the next-safe-action package, importing its client and middleware factories.
No additional actions listed.