Public pages (explore, content detail) should use createReadOnlyClient() with the anon key, not the service_role.
Why This Matters
Using service_role for public page reads bypasses RLS unnecessarily, removing a security layer and potentially exposing private data if a query filter is wrong.
Tags
nextjssupabaseAuthentication
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.