Add import "server-only" to any module that uses secrets, database connections, or server-only APIs.
Why This Matters
Without the server-only marker, Next.js won't prevent accidental imports into client components. The build succeeds but secrets leak.
Tags
nextjssupabase
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and 2+ others. Get actionable feedback before code ships.