Lovable to Production: A 16-Point Launch Checklist

By Alvi Lika, Founder, Soatech

· · 10 min read

What Lovable's security scans now cover, what they leave to you, and 16 checks to run before a Lovable app takes real users, data or payments.

A Lovable app that works in preview is not automatically ready for real users. The reason is not that Lovable ignores security. Its built-in scans catch a useful set of common mistakes. The gap is that some decisions only you can make, such as who should see which records, which actions need an owner, and what happens when a payment event arrives twice. No scanner knows your answers to those.

This checklist starts with what Lovable now does for you, then covers the 16 checks that remain your responsibility before launch. An earlier version of this page had 18 points built around a Next.js setup that Lovable apps do not use. It has been rebuilt around Lovable's current scans and stack.

What Lovable checks for you now

From Lovable's security documentation, as of November 2026:

FeatureWhat it doesWhen it runs
Quick scanDatabase review (tables without row-level security, rules that allow everyone through, leaked-password protection off), npm dependency audit, unauthenticated MCP server checkAutomatically on every publish; dependency audit when dependency files change
Deep scanEverything in the Quick scan plus a review of application code: authorization, abusable endpoints, injection, leaked secrets, payment logic, account security, personal data in logsOn demand only. "The Deep scan does not run automatically as you work."
Auto-fixTries to resolve a few critical Quick scan database and dependency findingsWhen enabled; it does not auto-fix Deep scan findings
Block publishing with critical issuesStops publishing while critical findings are openWorkspace setting, off unless an admin enables it
Security centerScan coverage and results across projectsBusiness and Enterprise workspaces

Lovable is also explicit about the limits. The scans "cannot guarantee complete security," and "you are responsible for ensuring that your app meets the security requirements appropriate for its use case." Its security best practices page lists the builder's side of the split: keeping secrets out of frontend code, validating input on the server, checking authorization in every backend endpoint, reviewing and testing RLS policies, and reviewing security again whenever features, auth, data access or integrations change.

That split is the reason for the checklist. The scans are a good floor. They are not a review of your access rules.

A note on history

In 2025, CVE-2025-48757 documented missing or insufficient row-level security in Lovable-generated projects. The researchers reported 303 exposed endpoints across 170 of 1,645 projects they analysed, scanning homepages only. They also noted that the scanner available then "merely checks for the existence of any RLS policy, not its correctness." The current Quick scan goes further and flags policies that let everyone through. The lesson still holds, though. A policy can exist, pass a scan and still allow the wrong person to read a record.

Which stack you are on

Lovable made TanStack Start the default for new projects on 13 May 2026. Older projects use React with Vite and can be upgraded in place. Either way, the data sits in Postgres behind row-level security, accessed through Supabase-style clients. Server-side code runs in Edge Functions or, on newer projects, server functions. The checks below apply to both. Code examples are simplified.

Before real data arrives

1. Write down the access rules

For every table that holds user or customer data, write one line: who can read a row, who can create one, who can change it and who can delete it. Examples: "a note is visible only to its author"; "a project is visible to members of its workspace and editable by owners". This document is the input every later check tests against. It is also what a reviewer needs from you.

2. Run a Deep scan and resolve every Critical finding

The Deep scan is the only Lovable scan that reads your application code, and it does not run by itself. Run it from the Security view before launch. For each Critical finding, fix it or record why it does not apply. Lovable lets you ignore a finding with a recorded reason, so use that rather than dismissing findings silently.

3. Turn on "Block publishing with critical issues"

If you are a workspace admin, enable it under the workspace's privacy and security settings. It turns "please check before publishing" into a gate.

Data access

4. RLS is enabled on every table with user data, and the policies match your rules

Lovable sets up basic policies for new projects. Check that they say what your rules from item 1 say. A typical owner-only policy:

alter table public.notes enable row level security;

create policy "notes: owner can read"
on public.notes for select to authenticated
using ( (select auth.uid()) = user_id );

create policy "notes: owner can update"
on public.notes for update to authenticated
using ( (select auth.uid()) = user_id )
with check ( (select auth.uid()) = user_id );

Policies are per command. A select policy does nothing for update or delete, and with check is what stops a user from rewriting a row into one they do not own. You can review policies in Lovable under More → Database → Manage → Policies.

5. Test isolation with two accounts, not by reading policies

Create two test accounts in a staging copy of your own project. As account A, create a record. As account B, try to read, update and delete it. As a signed-out visitor, count the rows you can see. All of those attempts should fail or return nothing. The Supabase RLS article has a complete script for this test. Run it only against a project you own.

6. No "allow everyone" policies on private tables

using (true) matches every row for every role it applies to. On a lookup table that is meant to be public, that is fine. On profiles, orders or messages, it makes the table readable by anyone who has your publishable key, and that key ships in your frontend by design. Supabase's Security Advisor flags these as permissive_rls_policy (lint 0024).

7. Roles and permissions are stored where users cannot edit them

If an "admin" flag lives in a column the user can update, or in user metadata the user controls, they can promote themselves. Keep roles in a separate table with no user-facing write policy, and check them on the server. Supabase's advisor flags policies that reference user-editable metadata (rls_references_user_metadata, lint 0015).

8. Server code that uses the service role checks the caller itself

The service role (or a Supabase secret key) bypasses RLS. Any Edge Function or server function that uses it must check identity and permission explicitly before acting:

// Edge Function using an elevated key (simplified)
import { createClient } from "npm:@supabase/supabase-js@2";

Deno.serve(async (req) => {
  const token = req.headers.get("Authorization")?.replace("Bearer ", "");
  if (!token) return new Response("Unauthorized", { status: 401 });

  // The elevated key's secret name depends on your setup; it must never reach the browser.
  const admin = createClient(Deno.env.get("SUPABASE_URL")!, Deno.env.get("SUPABASE_SECRET_KEY")!);

  // 1. Who is calling?
  const { data: { user }, error } = await admin.auth.getUser(token);
  if (error || !user) return new Response("Unauthorized", { status: 401 });

  // 2. May they act on this record? RLS will not stop this client, so check explicitly.
  const { projectId } = await req.json();
  const { data: member } = await admin
    .from("project_members")
    .select("role")
    .eq("project_id", projectId)
    .eq("user_id", user.id)
    .maybeSingle();
  if (member?.role !== "owner") return new Response("Forbidden", { status: 403 });

  // 3. Only now perform the privileged action.
  return new Response(null, { status: 204 });
});

The Deep scan looks for server code that bypasses database rules. Your item-1 rules tell you whether the check it finds is the right one.

9. Storage buckets follow the same rules as tables

Uploaded files are data too. Check each bucket: is it public, can anonymous users list its contents, and do the object policies match who should download a file? Supabase's advisor flags public buckets that allow listing (public_bucket_allows_listing).

Secrets, integrations and auth

10. No secrets in frontend code

Anything in the browser bundle is public. Lovable detects API keys pasted into chat and directs them to Secrets. Check the built app as well. Open the deployed site, search the loaded JavaScript for sk_, secret and your provider names, and confirm that every third-party API call with a secret runs on the server.

11. Payment webhooks verify signatures and ignore duplicates

A webhook endpoint that trusts any JSON posted to it will accept a forged "payment succeeded" event. In an Edge Function, Stripe verification uses the async variant:

// Stripe webhook in an Edge Function (simplified)
import Stripe from "npm:stripe";

const stripe = new Stripe(Deno.env.get("STRIPE_SECRET_KEY")!);
const cryptoProvider = Stripe.createSubtleCryptoProvider();

Deno.serve(async (req) => {
  const signature = req.headers.get("stripe-signature");
  if (!signature) return new Response("Missing signature", { status: 400 });

  const body = await req.text(); // raw body: required for verification
  let event: Stripe.Event;
  try {
    event = await stripe.webhooks.constructEventAsync(
      body, signature, Deno.env.get("STRIPE_WEBHOOK_SECRET")!, undefined, cryptoProvider,
    );
  } catch {
    return new Response("Invalid signature", { status: 400 });
  }

  // Insert event.id into a table with a unique constraint first; skip if it already exists.
  return new Response(null, { status: 200 });
});

Webhook functions usually have platform JWT verification turned off, because Stripe does not send a Supabase token. That makes the signature check the only gate, so it must be there. Stripe also documents that the same event can arrive more than once and that order is not guaranteed.

12. Auth settings are reviewed, not left at prototype values

Check email confirmation, password requirements and leaked-password protection (the Quick scan flags this one when it is off). Then test the password-reset flow with an address that has no account. The response should look the same as for a real one. Supabase Auth applies built-in rate limits to sign-in, sign-up and recovery, configurable under Authentication → Rate Limits. Confirm they suit your traffic before launch.

13. Expensive or abusable endpoints have their own limits

Auth rate limits do not cover your own functions. A function that calls a paid AI model, sends email or generates files can be called in a loop. Require a signed-in user, set a per-user limit and cap the provider's spending on the provider side.

Operations

14. Dependencies are reviewed beyond the critical findings

Lovable's dependency audit only turns critical vulnerabilities into findings. It suppresses some it judges unexploitable or unlikely to be exploited. Before launch, review high-severity advisories too, and remove packages the app no longer uses.

15. Project visibility and workspace access are set on purpose

Check who can open the Lovable project itself, as well as who can use the published app. Internal tools should require sign-in and use workspace-only visibility. Remove people who no longer need access.

16. Someone re-runs this list when the app changes

Lovable's guidance is to review security again whenever features, auth, data access or integrations change. Put it in the release routine: a Deep scan, the two-account test from item 5 and a look at new tables and functions. A scan that passed at launch says nothing about the table added last Tuesday.

Where to get help

To budget the work before you start, what it costs to make a Lovable app production-ready separates the platform bill from the engineering work. If the two-account test fails, or the Deep scan returns findings you cannot assess, the Production Audit gives you a written, prioritised diagnosis before any code changes. If you already know the gaps and want a fixed, written production baseline for a prototype, that is the Prototype to Production engagement.

Not sure which of these 16 apply to your Lovable app?

See the Production Audit

Working on a feature this article touches? A 30-minute call is the quickest way to scope it.

Discuss your project