Guide: Lovable staging for an AI-built app
Your Lovable app has no test copy: what that means and how to fix it
Lovable staging means a second copy of your app, with its own database, where changes are tried before customers see them. Without it, every change in Lovable goes straight to the live app and its real customer data.
This guide explains what a test copy is made of, the choices for a Lovable app, and how changes move from test to live. There is no code in it.
Why does a live app need a test copy?
Because a mistake on the live app reaches customers before you see it. A change that works in a quick look can still break sign-up, double a payment or change a customer's data.
With a test copy, you try the change on fake data, click through the main flows, and only then put it live.
What is a test copy made of?
Three parts, each kept apart from the live app.
- Code: a separate branch in GitHub where changes are made first, while the main branch stays live.
- Database: a second database with its own tables and fake data, so tests never touch real customers.
- Settings: test keys for payments and email, so a test order never charges a real card or emails a real customer.
Separate code alone is not enough. If the test copy still uses the live database, a test can still change real customer data.
What are the choices for a Lovable app?
It depends on where your app's database lives.
- Your own Supabase project
- Test copy: Add a second Supabase project (or a Supabase branch) for the test copy, and point the test copy at it
- Lovable Cloud
- Test copy: Check whether your project offers separate test and live. If it does not, moving to your own Supabase project gives you a separate test database
Moving the database is a planned job: the tables, the database rules and the data all have to come across, and logins have to keep working. Try it on the test copy first.
How do changes move from test to live?
The same way every time, so nothing is skipped.
- Make the change on the test branch, against the test database.
- Try the main flows: sign up, log in, the core booking or order, a payment in test mode.
- Apply any database change to the test database first, then to the live one, in the same order.
- Merge the branch so the change goes live, then check the live app once.
One rule saves a lot of trouble: on the live database, add new tables and columns, but do not rename or delete them without a plan.
What should the test data be?
Fake customers, not a copy of real ones. A plain copy of the live database puts real names, phone numbers and addresses in a place with looser access. If you need realistic data, copy it and replace the personal details first.
Can someone set this up for me?
Yes. A test copy is one of the things our ₹4,999 check looks at. The check ends with written findings and a fixed price to finish the app, and that amount comes off the build if it goes ahead.
More on the check: Finish your Lovable or Emergent app. Everything else a live app needs: what your AI-built app still needs before customers use it.
Questions people ask
What is a staging environment?
A second copy of your app, with its own database and its own test settings, where changes are tried before customers see them.
Does Lovable have a staging environment?
Lovable can work on a separate GitHub branch, but the test copy also needs its own database. If your app runs on Lovable Cloud and your project has no separate test and live, your own Supabase project gives you one.
Can I test payments without charging real cards?
Yes. Payment providers have a test mode with its own keys and card numbers. The test copy uses those, and only the live app uses live keys.
Is a test copy expensive to run?
Usually not. A small second database is often on a free or low plan, because it only holds test data.
Related services
We are based in Coimbatore and work with businesses across India. In Coimbatore, Tiruppur, Erode and Salem we can also visit you in person, depending on your business. We reply on WhatsApp from 9 am to 7 pm.