Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 3 min read

Your AI-built app works in the demo. Here is what breaks first with real users

Founders now show me apps they built in a weekend with Lovable, Bolt, Replit or Cursor. The demos are good. The screens are clean, the flows make sense, and a friend or two has already signed up. Then real users arrive,

Founders now show me apps they built in a weekend with Lovable, Bolt, Replit or Cursor. The demos are good. The screens are clean, the flows make sense, and a friend or two has already signed up. Then real users arrive, and the same app starts charging people twice, losing data or going down at night.

I have spent 14 years on systems where failure costs real money: a government platform with 800+ services, a pharmacy licensed in all 50 US states, a store with 4M+ customers. The failures in AI-built apps are not new. They are the same failures every fast prototype has, just arriving sooner because the prototype got to users faster. Here is what breaks first, in the order I usually find it.

1. Payments that run twice

The most expensive bug is a charge that happens twice, or an order marked paid when the payment failed. AI tools write the happy path: click, charge, done. They rarely handle a user who double-clicks, a webhook that arrives twice, or a network timeout halfway through. The fix is idempotency: every payment and every webhook carries a key, and the second attempt does nothing. On NiceOne, where the wallet and order systems handled 2.9M+ orders a year, this kind of protection was not optional.

2. Data anyone can read

Generated apps often talk to the database straight from the browser, with access rules that were left open during the demo. That means one user can read, or change, another user's records by editing a request. I check every table and every API route for one question: can a logged-in user reach data that is not theirs? In healthcare work like HealthHavenRx this is a legal requirement, but it matters just as much for any app holding customer data.

3. No backups you have actually restored

Most founders believe they have backups. Very few have restored one. A backup you have never restored is a hope, not a plan. Before anything else ships, I take a backup, restore it into a separate database and check that the app runs on it. It takes an afternoon and it is the cheapest insurance an early product can buy.

4. Secrets in the code

API keys for Stripe, OpenAI or the database end up in the frontend bundle or in the repository. Anyone who opens the browser developer tools can copy them. Move every secret to server-side environment variables, rotate the ones that were exposed, and put limits on what each key can do.

5. Nobody knows when it is down

Prototypes have no monitoring. The founder learns about an outage from an angry customer. Basic error tracking, uptime checks and a log you can search turn "it is broken" into "this request fails for these users since 9:14". You cannot fix what you cannot see.

6. Every release is a gamble

When changes go straight from the AI tool to production, each new feature can quietly break an old one. A staging environment, a handful of tests on the flows that make money (sign-up, checkout, the core action) and a one-click rollback make releases boring again. Boring releases are the goal.

Rebuild or fix?

Almost never rebuild first. The prototype already proved what users want, which is the hardest part. In most apps I review, the six areas above can be fixed in place, one at a time, while the product keeps running. A rebuild only makes sense when the data model itself is wrong, and even then it is done piece by piece.

If your app was built with AI and real users are starting to break it, I run a 5 to 10 day Production Readiness Audit through my company Devoun: you get a ranked list of what breaks first and what to fix first, with a fixed price for the fixes. Or send me your app link on LinkedIn and I will reply with your top 3 risks for free.

Related

Originally published on attarehman.com. I'm Atta Ur Rehman, founder of Devoun and a fractional CTO with 14+ years of experience.

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.