Security and launch check for Lovable apps
Updated
A Lovable app keeps its data in Supabase, either through Lovable’s built-in backend (Cloud) or your own Supabase project, so data access is controlled by row-level security policies in the database. Before launch, check that every table has policies that compare the row owner with auth.uid(), that no secret keys reach the browser, and that server functions check who is calling. Projects created since May 13, 2026 run on TanStack Start with server rendering; older ones run on React and Vite.
What you are running
- Frontend. New projects since May 13, 2026 use TanStack Start, which renders pages on the server and adds server functions. Older projects use React and Vite and run entirely in the browser until upgraded.
- Backend. Lovable Cloud is enabled by default and runs on Supabase. You can connect your own Supabase project instead. There is no one-click move between the two, so decide early.
- Secrets. On TanStack Start projects, server-only secrets live in Cloudflare Workers bindings. You add them in project settings, and Lovable decides which side of the line each one ends up on.
What to check, in this order
- Row-level security on every table. Run the 5-minute leak test with the anon key. In Lovable Cloud you manage tables in the Cloud view, not the Supabase dashboard, but the policies work the same way.
- Policies that only check sign-in.
auth.role() = 'authenticated'lets every user read every row. Test with two accounts. - Views and functions. Views skip RLS by default, and security definer functions in
publicare callable through the API. - Server functions. On TanStack Start, a server function is a public endpoint. Each one must check the user itself, not rely on the button being hidden.
- Storage buckets. Public buckets with user uploads are readable by anyone who guesses the path.
- Payments. Webhooks must verify the provider’s signature or re-check the payment through the API.
Leaving Lovable hosting
Exporting the code to Vercel or Netlify is common once an app grows. Older React and Vite projects lose Lovable’s pre-rendering on the way out and start returning 404 on refresh. With Lovable Cloud, the backend is also tied to Lovable, so plan the data export before you plan the move.