Lovable prototype to production: what has to change before real users arrive
By Menelaos Vergis · · Platform details checked against Lovable's, Bolt's and Supabase's documentation on that date.
A Lovable prototype is ready for real users when eight things are true: every database table has rules you've checked as a stranger, no secret key can reach the browser, sign-in works on your real domain, payments run in live mode with prices the server sets, you have a backup you could restore, changes reach users only after you've tried them, every paid service has a limit you chose, and you'd hear about a failure before a user tells you. Lovable and Bolt now do a good share of this for you. The rest is still yours, and both platforms say so in their own docs.
This guide goes through each area: what the platform already handles, and the short checklist that's left. It's written for Lovable first, with Bolt's equivalent where it differs, because the two are built on the same base: a React frontend and a Supabase database.
Key takeaways
- Lovable checks database rules, vulnerable packages and exposed tools before you publish, but its docs say plainly: "You are still responsible for your app's security."
- The most common real-world failure is a database table without row-level security. That's a rules problem, and a scan can only point at it; you decide who may read what.
- Lovable keeps one database backup a day for about 14 days, with no restore to a moment in between. Export before any big change.
- A Stripe live key in Lovable's preview takes real money. Switch keys deliberately.
- Custom domains need a paid plan on both Lovable and Bolt.
Why does a working prototype need changes at all?
Because a prototype only has to work for you, and a product has to keep working when strangers poke at it. In a prototype, you're the only user, the data is fake, and a broken change costs you a few minutes. After launch, every table is reachable by anyone with your app's public address, the data belongs to other people, and a broken change costs you their trust.
The gap is real and measured. In March 2025, researcher Matt Palmer scanned 1,645 apps from Lovable's showcase and found 170 of them (about 10%) had database endpoints with inadequate row-level security, exposing data to anyone who asked; it became CVE-2025-48757 (Matt Palmer, statement on CVE-2025-48757, May 29, 2025). Security firm Escape later scanned more than 5,600 publicly reachable vibe-coded apps, about 4,000 of them built with Lovable, and reported over 2,000 vulnerabilities and more than 400 exposed secrets, most reachable without signing in (Escape, updated June 17, 2026). Escape calls its numbers a conservative baseline; some "exposed tokens" in scans like this are keys that are public by design, so read the count as a direction, not a precise figure.
To be fair to Lovable: these were mostly builder configuration gaps, not platform bugs, and the same gaps appear in any Supabase app written by hand. Lovable has added checks since 2025, covered below. They narrow the gap. They don't close it.
What Lovable and Bolt already do for you
Before the checklist, credit where it's due. Both platforms ship a lot of production plumbing that a hand-built app would need weeks for.
| Lovable | Bolt | |
|---|---|---|
| Hosting and HTTPS | Included, no servers to set up (publish) | Free bolt.host hosting, usage capped per plan (Bolt Cloud) |
| Backend | Lovable Cloud, built on Supabase, on by default (Cloud) | Bolt Database, runs on Supabase (secrets) |
| Security check | Automatic checks when you open Publish (database rules, vulnerable packages, exposed tools), plus deeper checks you start yourself (security) | Database check on all plans; full project audit with fixes on paid plans, started from the Publish menu (security) |
| Secrets | Stored encrypted, given to Edge Functions only, never sent to the browser (secrets) | Given to server functions only (secrets) |
| Backups | One a day, kept about 14 days (backups) | Project version history; no database backup page found |
| Your code | Two-way GitHub sync; you own what you create (GitHub) | Commits to GitHub automatically (Git) |
| Custom domain | Paid plans (domains) | Paid plans (Bolt Cloud) |
Both are honest about the limits. Lovable's security page says its checks "can't guarantee that your app is secure or replace a full security review", and recommends a review by a security professional for apps that handle sensitive data. Bolt marks some audit findings "Needs your action": those are the ones it can't fix for you.
1. Database rules: who can read and change each table?
Row-level security (RLS) is a rule on each database table that decides which rows a given user may read or change. In a Lovable or Bolt app the browser talks to the database directly with a public key, so these rules are the only thing standing between a visitor and your data. Supabase's docs put it bluntly: a table in an exposed schema without RLS "is readable and writable by any role with a grant on it" (Supabase: RLS).
What the platform does: Lovable sets up basic RLS policies as it builds, and its pre-publish check flags "a table without per-row rules" (security). Bolt's database check runs on every plan.
What's still yours: a scan can tell a table has rules. It can't tell whether the rules match your business. Lovable's own best-practices page says the generated policies are a start, "but you should review and adjust them" (security best practices).
- Every table has RLS turned on, including ones you added late or think of as internal.
- For each table, you can say in one sentence who may read it and who may change it, and the policy says the same.
- You've tested as a stranger: sign up a second account and try to read the first account's rows. Then try while signed out.
- Any Edge Function that uses the service-role (secret) key checks permissions itself, because that key "bypasses RLS" (Lovable's words).
- Storage buckets with user uploads are private unless the files are meant to be public.
2. Keys and secrets: what can reach the browser?
Your app has two kinds of keys: public ones the browser needs, and secret ones that must stay on the server. Supabase's publishable key (the old anon key) is "safe to expose online" because RLS protects the data. The secret key (the old service_role key) "bypasses every Row Level Security policy you have" and must never be in a browser, "even on localhost" (Supabase: API keys).
What the platform does: Lovable's Secrets store keeps keys encrypted, hands them to Edge Functions, and refuses names starting with VITE_, because anything with that prefix is built into the code every visitor downloads. If you paste a key into the chat, Lovable spots it and saves it as a secret (secrets). Bolt only gives secret values to server functions, and warns that .env values read in the browser reach visitors.
What's still yours:
- Every call to a paid API (OpenAI, Stripe, email) goes through an Edge Function or server function, never straight from the page. Lovable's pre-publish checklist asks for the same.
- No secret key in the code, even in a file you think is unused. Search the GitHub repository for
sk_,service_roleandsecret. - Any key that ever appeared in chat, a screenshot or a commit is replaced, not just deleted. Once seen, it's leaked.
- You have a list of every key and where it's set, so you can replace one in minutes.
3. Sign-in and email: does it work on your real domain?
What the platform does: Lovable's built-in auth handles sign-up, login and password reset, can require email confirmation, and checks new passwords against known leaked ones by default on new projects (email auth). Bolt Cloud includes email confirmation, password reset and Google sign-in.
What's still yours: sign-in is the part that most often works in preview and breaks after launch. Lovable's docs name the usual cause: the published URL or custom domain is missing from the allowed redirect URLs.
- Email confirmation is on. Lovable: "keep confirmation enabled for a live app."
- Your published URL and custom domain are both in the redirect URLs, and you've signed up and reset a password on each.
- Auth emails come from your own domain. Without it, Lovable sends them through "a shared sender with its own strict limit" (custom emails); on a plain Supabase project the built-in sender allows only 2 emails an hour (Supabase: production checklist). On Bolt, custom SMTP needs your own Supabase project, which needs a Pro or Teams plan (Bolt: Supabase).
- Every decision about who may do what happens on the server. Lovable: "All authentication decisions must happen server-side." Hiding an admin button isn't protecting the admin page.
4. Payments: is the server in charge of the money?
What the platform does: Lovable's Stripe integration keeps your key in Edge Functions and checks payment status with Stripe directly (Stripe). Its built-in payments (Paddle or Stripe) go further: separate test and live modes, webhooks registered for you, and products synced to live when you publish (payments). Bolt's paid audit looks for misuse "such as changing a price or claiming a single-use item twice".
What's still yours:
- You know which mode you're in. With the Stripe integration, "the preview has no separate test environment": with a live key, payments made from the preview are real.
- Price IDs are the live ones. Lovable's docs note they differ between test and live mode, so a launch with test IDs fails at checkout.
- The price comes from the server or from Stripe, never from a value the page sends. Change it in the browser's developer tools and try to buy; the charge should not change.
- If you rely on webhooks (subscriptions, refunds, failed renewals), they're turned on and their signatures are checked. The Stripe integration doesn't use webhooks by default.
- You've done one real purchase and one refund on the live site, with your own card.
5. Data and backups: could you undo a bad day?
What the platform does: Lovable Cloud "takes one backup per day and keeps up to roughly 14 days of them" (backups).
What's still yours: read the limits before you need them. You can restore a daily backup, "but not a moment between two of them". "Restoring cannot be undone", and it brings back everything as of that day, including user accounts: anyone who signed up since is gone. And when Lovable accepts a draft that changes the database, it doesn't take a backup first (environments). Rolling back in version history restores code and functions, not data.
- Before any change that touches the database structure, export the data yourself.
- You've practised a restore once, on a copy, and know how long it takes.
- If losing a day of orders or sign-ups would hurt, you've planned for it: Supabase Pro adds point-in-time recovery as a paid add-on, with a worst case of about 2 minutes lost (Supabase: backups). On a free Supabase project you can't download the platform's backups, so Supabase tells you to export regularly yourself.
- On Bolt, find out what your plan backs up before launch. Its docs describe project version history, not database backups, and rolling back removes any fixes the security audit made.
6. Changes after launch: do users see your experiments?
What the platform does: Lovable keeps edits in drafts. "Until you publish, visitors see the previous version." A draft can run on its own backend with example data, or share the live one (environments).
What's still yours: the risk moves from code to data. A draft that shares the live backend changes real data the moment it runs, even if you never publish it.
- Drafts that change the database use their own backend, not the live one.
- Your code is on GitHub. Lovable syncs one branch,
mainby default, both ways; Bolt commits automatically. Either way, you have a history outside the platform. - After each publish, you click through sign-up, the main paid action, and one page as a signed-out visitor.
- If more than one person (or more than one AI tool) changes the code, you've set up the guardrails in how to start a project so AI can't break it: written rules, automatic checks and a protected branch.
7. Hosting, domain and costs: what happens when traffic arrives?
What the platform does: hosting is included on both, with HTTPS. Lovable's custom domains get SSL automatically and redirect HTTP to HTTPS (domains). You can also move the frontend elsewhere: Lovable says you own your code and can host it "wherever you choose" (deployment and ownership).
What's still yours:
- A paid plan, if you want your own domain. Both Lovable and Bolt keep custom domains for paid plans.
- Credits or usage headroom. On Lovable, apps that use the backend or AI need credits available to serve requests; on Bolt, hosting usage is capped per plan. Find out what happens to your live app when you hit the cap.
- If you run your own Supabase on the free plan, know that it pauses after a week of low activity (Bolt: Supabase). A launch-week lull can take your app offline.
- Every paid service, including AI APIs, has a spending cap or a budget alert. Our guide to stopping a surprise cloud bill covers Vercel, Supabase and Azure.
- Moving later is a project, not a click. Lovable's docs say moving the database "does not move authentication, storage, realtime, or Edge Functions", and there's no way back from your own Supabase into Lovable Cloud. Decide early where you want to end up.
8. Limits and alerts: would you know something is wrong?
Neither platform's docs, as far as we found, cover request rate limiting for your own functions. That matters most for anything that costs you money per call: an Edge Function that calls an AI model can be called in a loop by anyone who finds it.
- Functions that call paid APIs check that the caller is signed in and limit how often each user can call them.
- AI API keys have their own monthly limit in the provider's dashboard.
- Errors go somewhere you'll see them: an error tracker, or at least an email on failed functions.
- A free uptime monitor checks your live URL every few minutes.
The checklist, all in one place
| Area | The one question to answer before launch |
|---|---|
| Database rules | Can a second account read the first account's rows? |
| Keys | Is any secret key in the browser, the repository, or an old chat? |
| Sign-in | Do sign-up and password reset work on the custom domain? |
| Payments | Does changing the price in the browser change the charge? |
| Backups | When did you last export, and could you restore it? |
| Changes | Can a draft touch live data? |
| Hosting and costs | What happens to the live app when credits or a free tier run out? |
| Limits and alerts | Would you hear about a failure before a user tells you? |
If every answer is the safe one, your prototype is ready for real users. If some aren't, fix those first: a launch with one table open is worse than a launch a week later.
Frequently asked questions
Is Lovable safe for production apps?
It can be. Lovable provides hosting, encrypted secrets, daily backups and automatic security checks before publishing. The platform is a sound base; the risk sits in each app's configuration, mostly database rules and keys. Lovable's own docs say you remain responsible for your app's security, so check the areas above before launch.
Does Lovable's security scan make my app secure?
No, and Lovable says so: its checks "can't guarantee that your app is secure or replace a full security review." The scan finds common problems such as tables without row-level security and vulnerable packages. It can't know your business rules, like whether a manager may see other teams' data.
Do I need to move off Lovable to go to production?
No. Many apps launch and stay on Lovable Cloud. Move when you need something it doesn't offer, such as point-in-time recovery, separate staging and production databases you control, or a specific host. Plan the move early, because auth, storage and functions move separately from the database.
Does the same checklist apply to Bolt?
Yes. Bolt's database runs on Supabase too, so the same row-level security, key and backup questions apply. The differences are in the details: Bolt's full security audit is on paid plans and you start it yourself, and custom email for sign-in needs your own Supabase project.
Check your own app
Most of these checks are also in our free Ship Safe checklist: 25 items for any AI-built app, with database rules, keys and spending caps first, ready to print and tick off. If you'd rather have someone else look before launch, a Ship Safe audit goes through your Lovable or Bolt app, its database and its accounts, read-only, and tells you what to fix first.
