You built the thing, and it works. Mostly. Maybe it was a weekend with Cursor or Lovable, a few late nights prompting your way to a working app, or a freelancer who built it fast and moved on. It demoed well. A customer said yes. Your team started using it. Now it breaks on Tuesdays, nobody knows why, and every fix seems to break something else.
That's the normal second chapter of a prototype. The tools that got you to a demo in days are built for speed, and they are very good at it. They don't plan for the hundredth user, the weird PDF, the API that times out at 2 a.m., or the person who has to maintain it after you.
The short answer: most vibe-coded apps don't need a rewrite. They need five fixes, in this order: one repeatable, locked-down setup, failures that tell you where they broke, timeouts and retries around every outside service, a test set for the AI's answers, and only then a nicer interface.
Where the bill actually lands
The cost shows up later, and rarely on an invoice. Hours disappear every week into restarts and workarounds. A customer gets a wrong answer and quietly stops coming back. One employee becomes the only person who knows which button not to press. The first version cost almost nothing to build, and keeping it running is where the bill finally lands.
How do you know your app has outgrown the prototype?
You're scared to touch it. Every change is a gamble, so nobody changes anything, and the list of small annoyances keeps growing.
It only runs on one laptop. Moving it to a server, adding a teammate, or rotating an API key turns into a lost afternoon.
Failures are silent or random. A report comes back blank, a job just stops, and there's no log telling you where or why.
The AI output drifts. Answers that were sharp last month are now vague, wrong, or formatted differently every time. The provider updated the model, or someone tweaked a prompt, and nothing caught it.
You're the only one who understands it. Or worse, nobody does, because the code was generated faster than anyone could read it.
Nobody has checked who can get in. API keys sit inside the code, customer data has no access rules, and no one has looked at the app thinking about what could leak.
One of these is a nuisance. My rule of thumb: three or more, and the app is probably costing you more time than it saves.

Why do vibe-coded apps break in real use?
A demo only has to work once, on the day you show it. A business tool has to survive its worst day. Most prototypes are built around the happy path, where the file is clean, the API answers in a second, and the model behaves. Real use is mostly everything else.
Three things usually go first. Outside services like the AI provider, the email sender, and the payment processor fail in small ways all day, and a prototype rarely waits, retries, or notices. AI steps have no quality bar, so nothing catches a bad answer before a customer sees it. And the code itself grew by addition, with each new feature stacked on the last, until one change ripples somewhere nobody expected.
What that looks like in a real week. An illustration: a Phoenix pool-service owner builds a quote tool with an AI app builder over a weekend. Customers upload photos of their pool, a model estimates the job, and a quote goes out by email. The first forty quotes are fine. Then, in one week, a photo straight off an iPhone arrives as a HEIC file the app can't read, and the customer gets a blank quote with no error. A Monday-evening rush hits the request limit on the free AI plan the app was built with, and six requests vanish. The retry added to fix that sends two customers the same quote twice, at two different prices. And the database behind it shipped without access rules, so anyone who looked at the page's code could read every customer's address. None of that showed up in the demo.

How do you make a vibe-coded app production-ready?
Getting it production-ready isn't a rewrite in a fancier framework. It's a sequence.
- Make it run the same way every time. One setup anyone can follow, secrets out of the code, access rules on the database, and a copy of production you can break safely.
- Make failures loud. Logging and alerts, so a broken step tells you where it broke instead of returning a blank page.
- Harden the edges. Timeouts, retries, and fallbacks around every outside service, with retries that can't send the same quote twice.
- Put a bar on the AI. A small set of real examples with known good answers, checked every time a prompt or model changes. This is how output stops drifting. Put the messy cases in it on purpose: a sideways photo, a pool half hidden by a patio umbrella, a question your data can't answer.
- Then improve what people see. Interface work lands better once the engine underneath is steady.
Step five is tempting because that's what users complain about. Starting at one is what makes five stick.

Should you start over?
Usually not. The urge to burn it down is strong when the code is messy, but a rewrite throws away everything the prototype already learned about your customers, your data, and your edge cases. It also means months with nothing new shipped.
Repair first. Stabilize the workflow that makes you money, wrap tests around it, and replace the worst parts one at a time while the app keeps running. A rewrite is right when the builder won't let you take the code with you, when the data can't be split by customer or location and you now need that, or when the app is small enough that rebuilding one workflow is faster than untangling it. You'll know which after the first milestone, not from the outside.

Skip the audit that ends in a PDF. A lot of rescue offers start with a paid audit. I'd rather fix one thing that matters in the first milestone. A working fix tells you more about a codebase than a report does, and you have something running at the end either way.
Every milestone ends with a before-and-after on the numbers that show whether it worked: how often the workflow fails, how long a run takes, and what each run costs. If the numbers didn't move, you'll see that too. If there's no log to measure from yet, the before number starts as an honest estimate, and fixing that is part of the work.

