Place server actions in separate *-actions.ts files rather than inline in page components.
Why This Matters
Inline server actions mix data mutation logic with UI rendering, making them harder to test, reuse, and reason about.
Tags
nextjssupabaseserver-actions
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and 3+ others. Get actionable feedback before code ships.