</>RescueMyRepoFree scan

// guide · Lovable · published Nov 24, 2026

Lovable drafts can touch your live app: a safety checklist before you test or accept

Short answer

A Lovable draft copies your code, not your whole world. In every draft, secrets and connected services use their live values, so a test checkout with your own live Stripe key is a real payment. If your project uses your own Supabase project, the draft shares your live database. And when you accept, table, column, RLS and backend-function changes hit your live app immediately, before you publish, with no database backup. Check the banner, test payments elsewhere, keep real people out of db/seed.sql, and export your database before Accept.

What drafts are (and why they feel safer than they are)

Lovable's drafts let you build a change in a copy of your project, then accept it into the main version or delete it. On the built-in backend, a draft usually gets its own database with example data, which is great for testing a new form or an admin page. The catch is in the details of the docs (Lovable: Explore changes with drafts), and they matter most for exactly the apps that hold real customer data and take real money.

Step 1: check which backend the draft uses

Look above the preview before you touch any data. A banner saying you're viewing example data means the draft has its own backend. No banner means it shares your live one. A draft shares your live backend when your project uses your own Supabase project instead of the built-in backend, or when Lovable can't set up a draft backend (an unsupported database extension, a paused database, or a structure it can't copy) (which backend a draft uses).

Draft with its own backendDraft sharing your live backend
Data you add, change or deleteStays in the draftChanges your live app now; deleting the draft doesn't undo it
User accountsDemo/test accounts and ones you sign up in the draftYour real users
Secrets and connected servicesLive valuesLive values
Own Stripe account + live keyReal paymentReal payment
Emails via a connected serviceReally sentReally sent
Preview banner"Viewing example data"No banner

In a shared-backend draft, create your own test records instead of editing real ones, and never “clean up” rows to see how a page looks empty.

Step 2: assume every secret is live

Drafts can't use separate test values for secrets or connected services. Lovable's docs spell out what that means: an API call your app makes through them from a draft is real, an email sent through a connected service is really sent, and with your own Stripe account and a live key a checkout is a real payment, whose confirmation goes to your live app, not the draft. Built-in payments use test mode in drafts.

Step 3: keep real people out of db/seed.sql

Drafts with their own backend start from your example data file, db/seed.sql, which is part of your project's code. If you ask Lovable to copy live records into a draft, it adds a copy of those rows to that file, and once you accept the draft every new draft starts with them. Lovable asks before copying names, email addresses or other personal details, and its docs recommend replacing them with example values. Do that: with Git sync, the draft's code reaches your GitHub repository when you accept it, and in a public repo the file is readable by anyone and stays in history after you delete it. Saved demo accounts also put their passwords in the same file.

-- db/seed.sql  (part of your code: Git sync pushes it to GitHub)
insert into public.customers (name, email, phone) values
  ('Maria Lopez', 'maria.lopez82@gmail.com', '(210) 555-3821'),  -- copied from live
  ('Derek Shaw',  'dshaw.tx@yahoo.com',      '210-555-9912');    -- copied from live
-- db/seed.sql: realistic shapes, nobody's real details
insert into public.customers (name, email, phone) values
  ('Test Customer 1', 'customer1@example.com', '555-0100'),
  ('Test Customer 2', 'customer2@example.com', '555-0101');

If real data already landed in a public repo, replace it, then purge it from history (GitHub: removing sensitive data) and work out whether the people affected need to be told.

Step 4: review and back up before you click Accept

Accepting does more than merge code. Per Lovable's docs, pages and screens wait for Publish, but database structure (tables, columns and the rules about who can read or change data), backend functions the draft changed, and storage settings take effect in your live app immediately (accept a draft). Lovable warns that it doesn't back up your database when you accept, and restoring an earlier version restores code and backend functions, not your database. Anyone with edit access can accept any draft without anyone's approval, and an AI client connected to the Lovable MCP server can accept drafts too.

Paste this into the draft's chat before accepting:

Before I accept this draft, list every change it makes to the live backend:
1. Tables and columns added, and any data copied between columns.
2. Every new or changed Row Level Security policy or access rule, with the SQL, and who it lets read, insert, update or delete which rows.
3. Backend functions it will deploy, and which secrets they use.
4. Storage bucket changes, especially anything made public.
5. Whether db/seed.sql now contains any real names, emails, phone numbers or addresses. If so, replace them with example values first.
Flag anything that renames or removes something the current published app uses. Don't accept the draft; I'll do it after I export the database.

Step 5: re-test access after it's live

New tables and policies are where data leaks start. After you accept and publish, check that a logged-out visitor can't read them:

# After accepting + publishing, re-test access on YOUR OWN app (logged out = anon key only):
curl "https://<project>.supabase.co/rest/v1/<new_table>?select=*" \
  -H "apikey: <your public anon key>"
# Rows of other people's data here = the new table or policy is open to everyone.

Check your repo automatically

Once a draft's code is in your GitHub repo, RescueMyRepo's free scan reads it like a reviewer would. New today, it flags seed and example-data files (db/seed.sql, supabase/seed.sql, prisma/seed.ts, fixtures) that contain what look like real people's email addresses and phone numbers. It also checks Supabase tables with RLS off or using (true) policies, views that bypass RLS, secret keys in the frontend, unverified Stripe webhooks and unprotected AI endpoints, each with a fix prompt.

Scan my repo freePublic GitHub repos · no signup · about a minute

FAQ

Is a Lovable draft a staging environment?

Partly. On the built-in backend (Lovable Cloud) a draft usually gets its own database filled with example data, so data you change stays in the draft. But Lovable's docs say that in every kind of draft, secrets and connected services use their live values, and a draft shares your live backend when your project uses your own Supabase project or when Lovable can't set up a draft backend. Treat it as a code sandbox, not a full staging environment.

How do I know if my draft is using my real database?

Look above the preview. A banner saying you're viewing example data means the draft has its own backend. No banner means the draft shares your live backend, and anything you add, change or delete there changes your live app. Deleting the draft does not undo it.

Will a test checkout in a draft charge a real card?

With your own Stripe account and a live secret key, yes: Lovable's docs say the payment is real. The confirmation goes to your live app, so the checkout never completes in the draft either. With Lovable's built-in payments, checkout in a draft uses test mode. Drafts can't use separate test values for secrets, so test real Stripe flows in a separate project that uses Stripe test keys.

Does Lovable back up my database when I accept a draft?

No. The docs warn that Lovable doesn't take a database backup on accept, and restoring an earlier version from version history restores code and backend functions, not your database. Export your database before you accept anything that changes tables, columns or access rules.

Do RLS policy changes in a draft go live before I publish?

Yes. Accepting a draft changes your live database structure, which Lovable defines as tables, columns and the rules about who can read or change data, plus backend functions and storage settings, immediately. Publishing only updates the pages and screens. Until you publish, your old frontend runs against the new rules.

Can my customers' data end up on GitHub?

It can. Drafts start from an example data file, db/seed.sql, which is part of your project's code. If you ask Lovable to copy live records into a draft, it adds them to that file, and Git sync pushes the draft's code to your repository when you accept the draft. Lovable asks before copying personal details; say no, or have it replace them with example values. In a public repo, anything in that file is public and stays in git history.

Does RescueMyRepo check for this?

Partly. Since Nov 24, 2026 the free scan flags seed and example-data files (db/seed.sql, supabase/seed.sql, prisma/seed.ts, fixtures) that contain what look like real people's email addresses, and it already flags open Supabase tables, permissive RLS policies, secret keys in the frontend and unverified Stripe webhooks, which are the mistakes a rushed accept tends to ship. It can't see your Lovable draft settings.

Sources