Type your Supabase client with generated database types
Use supabase gen types typescript to generate types from your schema, then pass them as a generic: createClient<Database>().
Why This Matters
Without generated types, the Supabase client returns `any` for all queries. Column name typos and type mismatches are only caught at runtime.
Tags
nextjssupabaseTypeScript
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.