What breaks when AI-built apps meet real users

Lovable, Bolt and Cursor can turn an idea into a working demo over a weekend. That's useful: you can show it to customers, raise money on it, and find out whether anyone wants the thing before spending months building it.

The demo works because of the conditions it runs in. There's one user (you), the data is made up, payments are in test mode, and nobody is trying to break anything. Launching changes all four at once.

These are the problems we look for first when someone asks us to review an AI-built app, roughly in the order they cause trouble. Most of them can be checked in an afternoon without reading much code.

1. Private data that isn't private

This is the most common serious problem, and the one with the worst consequences. Apps built on Supabase or Firebase often fetch data directly from the browser. That's fine if the database rules only let each user see their own rows. Very often they don't: row-level security is switched off, or the rules allow any signed-in user to read everything, and the app only looks private because the screen filters by user.

How to check: create two accounts. Sign in as the second one, open your browser's developer tools, and look at the network requests the app makes. Try changing an ID in one of them to an ID belonging to the first account. If you get the first account's data back, so can anyone else.

The fix: proper access rules in the database (row-level security policies in Supabase, security rules in Firebase), plus server-side checks for anything sensitive.

2. Secret keys in the browser

AI tools will happily call the OpenAI or Stripe API straight from the frontend if that's the quickest way to make a feature work. Anything in the frontend is visible to every visitor, so a secret key placed there is effectively public. Someone who finds an OpenAI key can run up a large bill on it.

How to check: open the deployed site, view the page source and the JavaScript files, and search for sk_, sk- and secret.

The fix: move those calls into a server function, and rotate any key that has ever been in frontend code, because it may already have been copied.

3. Payments that only work when everything goes right

The checkout in a demo usually works: you enter a test card and land on a success page. What's often missing is everything else. If the app marks someone as paid when they reach the success page, rather than when Stripe or Razorpay confirms it through a webhook, people can get access without paying, or pay without getting access when they close the tab too early. Failed renewals, cancellations, refunds and invoices with GST tend to be missing entirely.

How to check: use your payment provider's test cards for a declined payment and an expired card. Start a payment and close the tab before it finishes. Cancel a subscription. See what the app thinks happened in each case.

4. No limits on anything

A demo doesn't need rate limits, because nobody is hammering it. A public app does. Sign-up forms attract bots, and any endpoint that calls an AI model costs money each time it runs. Without limits, one script can create thousands of accounts or spend your monthly AI budget in an afternoon.

The fix: rate limits on sign-up, login and anything that calls a paid API; a cap on how much each user can use the AI features; and budget alerts with your AI and hosting providers.

5. Changes that lose data

In an AI-built app, the database structure often changes whenever a prompt asks for a new feature. That's harmless with sample data and painful with real customers. A renamed column or a dropped table can quietly delete information people entered.

How to check: find out when your last database backup was taken, and whether you've ever restored one. If you don't know, assume there isn't one.

The fix: automatic daily backups, a tested restore, and database changes made through migration files that are reviewed before they run.

6. Nobody knows when it breaks

Without error tracking, the first sign of a problem is a customer email, if they bother to send one. Most people just leave.

The fix: an error tracker such as Sentry, an uptime check that alerts you when the site is down, and logs you can search when something goes wrong. All three have free plans that are enough at the start.

7. Every fix breaks something else

AI coding tools rewrite whole files to make a change. With no tests, there's nothing to notice when a change to the settings page breaks sign-up. Founders often describe this as the app "getting worse" over time.

The fix: you don't need full test coverage. A few automated tests that sign up, complete the main task and make a payment, run before every deploy, will catch most of the damage.

What to fix before launch

Not all of this has to be done on day one. If you're short on time, deal with the first two before anyone outside your team signs up, because they expose other people's data and your money. Fix payments before you start charging. Limits, backups and monitoring can follow in the first few weeks, as long as they do follow.

We've put all of these checks, and a few more, into a free production-readiness checklist you can work through yourself. If you'd rather have someone else look, send us the link for a free check and we'll reply with a short written note on what we find.