Prototype to production

Your Lovable or Bolt app works. Is it production ready?

AI app builders like Lovable and Bolt can get you from idea to a working app in an afternoon, and that is a real achievement. But an app that works when you click through it is not the same as a production ready app that is safe for strangers' data and money. Here is a 12 point checklist to run before launch.

The short version
  • Credit the tools: AI builders are great for a fast first version and early testing.
  • The gap: security in the browser, loose database rules and missing unhappy paths are invisible from the screen.
  • Fix first: row level security on every table, no secret keys in the front end, server side auth and verified payment webhooks.
  • Then: rate limits, input validation, backups, error monitoring and separate dev and prod environments.
  • Last: dependency updates, basic SEO meta and accessibility.

Credit where it is due

Lovable, Bolt and the other AI app builders are genuinely useful. A founder with no engineering background can describe a product and have a working app in an afternoon. Screens, a database, signup, even a checkout. Five years ago that took a team and a few months.

So this is not a post about how AI builders are bad. They are very good at getting you to a working first version, and for testing an idea with a handful of friendly users they are often the right choice.

The problem is the gap between "it works when I click through it" and "it is safe for strangers to use with their real data and money". That gap is mostly invisible. The app looks finished. Nothing on screen tells you that any logged in user can read every row in your database, or that your payment confirmation can be faked.

This guide walks through why that gap exists, what has already gone wrong in public, and a 12 point checklist to work through before you invite real users.

Why working is not the same as ready

AI builders optimize for the thing you can see: does the screen do what you asked? Most of what makes an app production ready is invisible from the screen.

Three patterns cause most of the trouble:

  • Security lives in the browser. Many generated apps hide data in the interface but do not stop it being requested directly. If the check is only in the front end, anyone who opens the browser's developer tools can get around it.
  • Database rules are off or too loose. Builders that use Supabase rely on row level security (RLS) policies to decide who can read and write each row. If those policies are missing or wrong, the database is effectively open to anyone holding the public key, which ships with every visitor's browser.
  • The unhappy paths were never built. What happens when a payment fails, a user submits a form 500 times, or the database needs restoring? If you never asked, the builder never built it.

None of this is a flaw unique to one tool. It is what happens when software is built by describing the visible result, and nobody reviews what sits underneath.

What has gone wrong in public

This is not a theoretical risk. A few cases have been reported publicly:

  • CVE-2025-48757 was assigned to a row level security misconfiguration affecting Lovable generated apps built on Supabase. It was rated 9.3 on the CVSS severity scale, which falls in the critical band.
  • The Register reported in February 2026 on a Lovable built app that exposed the data of about 18,000 users.
  • TheNextWeb reported on Lovable projects that were left exposed for 48 days.

The common thread is not that the tool was malicious or careless. It is that apps went live with database rules and access checks nobody had reviewed. The founders likely had no idea, because from the outside everything worked.

The good news: most of these issues are fixable in days, not months, if you know where to look.

The 12 point Lovable and Bolt security checklist

Work through these before you invite anyone you do not personally know. We have grouped them into data and access, money and abuse, and operations. If you cannot tell whether an item is done, treat it as not done.

#CheckWhy it matters
1Row level security on every tableStops users reading or changing other users' data
2No secret keys in front end bundlesAnything in the browser is public
3Server side auth checksInterface checks can be bypassed
4Rate limits on login and formsBlocks password guessing and spam
5Payment webhooks verified server sideStops fake "payment succeeded" messages
6Input validationKeeps bad or malicious data out
7BackupsLets you recover from mistakes
8Error monitoringYou hear about bugs before users do
9Separate dev and prod environmentsTesting cannot break or leak live data
10Dependency updatesCloses known holes in libraries
11Basic SEO metaPeople can find and share your pages
12AccessibilityEveryone can use it, and you reduce legal risk

Data and access: checks 1 to 3

1. Row level security on every table

If your app uses Supabase, open the dashboard and look at each table. RLS should be enabled, and each table should have policies that limit reads and writes to the right users. A common pattern is "users can only see rows where the owner ID matches their own ID". Then test it: log in as user A and try to fetch user B's records directly. If it works, you have a problem. Watch for tables added later in the project, such as a notes or messages table, which are easy to miss.

2. No secret keys in front end bundles

Public keys, like a Supabase anon key or a Stripe publishable key, are designed to be in the browser. Secret keys are not. Search your front end code and your built files for anything labelled secret, service role or private. A Supabase service role key or a Stripe secret key in the browser gives anyone full control. If one has been exposed, rotate it, do not just delete it from the code.

3. Server side auth checks

Hiding the admin button from normal users is not security. Every action that reads or changes data should check, on the server or in the database rules, that the person asking is allowed to do it. Ask: if someone called this endpoint directly with their own login, could they do something they should not?

Money and abuse: checks 4 to 6

4. Rate limits on login and forms

Without limits, someone can try thousands of passwords against your login page or flood your contact form. Add limits per IP address and per account. Most hosting platforms and auth providers have this built in; it just needs switching on and configuring.

5. Payment webhooks verified server side

When Stripe or another provider confirms a payment, it sends a webhook to your server. Your server must verify the signature on that message before granting access. If your app turns on paid features because the browser says "payment succeeded", anyone can fake that. This is one of the most common gaps we find in AI built apps that take money.

6. Input validation

Every form and API should check what it receives: the right type, a sensible length, no unexpected fields. Validate on the server, not only in the form. This protects your data and stops a lot of odd bugs that only appear once real users start typing.

Operations: checks 7 to 10

7. Backups

Confirm that automated backups are on, know how far back they go, and restore one at least once to make sure it works. A backup you have never restored is a hope, not a backup.

8. Error monitoring

Add an error tracking tool so crashes and failed requests are recorded and sent to you. Without it, you only learn about problems when a user bothers to email, and most will not.

9. Separate dev and prod environments

Your live app should have its own database, its own keys and its own deployment. Testing new features against the production database is how data gets deleted or exposed by accident. Many AI built projects run everything in one environment because it was simpler on day one.

10. Dependency updates

Generated apps pull in many open source packages. Some will have known security issues. Run your package manager's audit command, update what you can, and set a reminder to check monthly.

Findability and access: checks 11 and 12

11. Basic SEO meta

Each public page should have a clear title, a description and sensible link previews for when someone shares it. Many AI built apps render everything in the browser, so search engines and social previews see a blank page. If people need to find you through search, check what your pages look like to a crawler.

12. Accessibility

Check that the app can be used with a keyboard, that images have text alternatives, that form fields have labels and that text has enough contrast. It is the right thing to do, it widens your audience, and in many markets it is increasingly a legal expectation for paid products.

What to do if you find problems

Most founders who work through this list find at least a few gaps. That is normal, and it does not mean you need to start again. Our usual order of work:

  1. Fix anything that exposes data or money first: checks 1, 2, 3 and 5. These are the ones that make the news.
  2. Then protect against abuse and loss: rate limits, validation, backups and monitoring.
  3. Then the hygiene items: environments, dependencies, SEO and accessibility.

If your app has grown past what the builder handles comfortably, it may be time to move the code into a normal repository where a developer can review and test it. You keep everything you built; you just stop relying on the builder for the parts it was not designed for. We compare that path in more detail on our Lovable alternative and Bolt alternative pages.

If you already have a working Lovable or Bolt app and want a second pair of eyes, send it to us for a free prototype review through our prototype to production service. We will tell you which of the 12 points are covered and what it would take to close the rest. If you are still deciding what to build, start with MVP vs prototype vs proof of concept, or request a quote for a full build.

FAQ

Are apps built with Lovable or Bolt secure?

They can be, but security is not guaranteed by default. Public cases, including CVE-2025-48757, involved Lovable apps on Supabase with row level security misconfigured. Whether your app is safe depends on its database rules, server checks and key handling, which you need to review.

What is Supabase row level security?

Row level security is a set of database policies that decide which users can read or change each row in a table. Without it, anyone holding your public Supabase key, which every visitor's browser has, may be able to read or edit data they should not see.

How do I check if my secret keys are exposed?

Search your front end code and built files for anything labelled secret, service role or private. Publishable keys belong in the browser; secret keys never do. If a secret key has been exposed, rotate it in the provider's dashboard, not just in your code.

Do I need to rebuild my AI built app from scratch?

Usually not. Most gaps on the checklist can be closed in days by moving the code into a normal repository and having a developer review and harden it. You keep the screens and flows you already built.

Can Produit review my Lovable or Bolt app?

Yes. Send it to us through our prototype to production page for a free review. We will tell you which of the 12 checks are covered and what it would take to close the rest before launch.

Let's build

Want this plan run on your product?

Send us your idea or your prototype. You get a fixed scope, a fixed price and a launch date within 48 hours.

Keep reading

More from the blog.

All posts
Request a quote

Tell us what you're building.

Step 1 of 3

What are you building?

Product type
Where are you today?

Thanks! Your brief is in. You'll get a fixed scope, price and launch date within 48 hours.