← All guides

8 min read

How to make a Supabase app production-ready

Supabase is a great backend for AI-built apps, but its defaults assume you will finish the job. Work through this checklist before you invite real users.

Keys

Database rules

alter table public.profiles enable row level security;

create policy "Users read own profile"
  on public.profiles for select
  using (auth.uid() = id);

Authentication

Storage

Reliability

Ask your AI tool to audit it

Prompt for your AI tool

Audit my Supabase project for production: list tables without RLS, policies using true, security definer functions callable by anon, public storage buckets, and any secret keys used in client code. Report everything first, then fix one item at a time with my approval.