# Your vibe-coded app worked. Now it has to work every day.

> It demoed well, and now it breaks every week. Most apps built with Cursor, Lovable or a fast freelancer don't need a rewrite. They need five fixes in the right order, and the order matters more than the tools.

- Source: https://www.southernsun.dev/guides/vibe-coded-app-to-production
- Author: Gabriel Mongalo, Southern Sun
- Published 2026-12-03
- Topics: Fix an AI app, Testing & monitoring

![Two sketches of the same app window, two weeks apart. On demo day its chart climbs cleanly. On a Tuesday the chart breaks off under a warning sign, a crack runs down the window, tape holds it together, and a sticky note says don't click export.](https://www.southernsun.dev/guides/vibe-coded/demo-day-vs-tuesday.png)

The same app twice: clean on demo day, and on an ordinary Tuesday with a real week's data in it.

**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.

![A plant whose roots have cracked its pot, beside a numbered list of the six signs: afraid to touch it, runs on one laptop, silent failures, drifting AI output, one person understands it, nobody checked access.](https://www.southernsun.dev/guides/vibe-coded/outgrew-the-pot.png)

Three or more of the six, and the app has outgrown its pot.

## 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.

![Two copies of the same pipeline: photo, AI estimate, quote. In the demo it runs straight through. In a real week four numbered markers show where it breaks: a photo it can't read, a Monday rate limit, a retry that sends two prices, and a database with no access rules.](https://www.southernsun.dev/guides/vibe-coded/demo-vs-real-week.png)

The pool-service quote tool, an illustration. The demo runs straight through. A real week breaks it in four places: (1) a photo it can't read, (2) the free plan's limit on a Monday rush, (3) a retry that sends two prices, (4) a database with no access rules.

## 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.

1. **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.
2. **Make failures loud.** Logging and alerts, so a broken step tells you where it broke instead of returning a blank page.
3. **Harden the edges.** Timeouts, retries, and fallbacks around every outside service, with retries that can't send the same quote twice.
4. **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.
5. **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.

![The five fixes drawn as stacked layers, bottom to top: same setup every time, failures that speak up, retries at the edges, a test set for the AI, and the interface. The bottom layer is marked start here; the top is where most teams want to start.](https://www.southernsun.dev/guides/vibe-coded/five-fixes.png)

The five fixes as layers. Each one rests on the one below it, which is why the interface goes last.

## 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.

![Two buildings. On the left, a storefront with a patched roof and a ladder against it, still open for business. On the right, a dashed outline of a new building inside scaffolding, empty.](https://www.southernsun.dev/guides/vibe-coded/repair-vs-rewrite.png)

Repair keeps the shop open while the roof gets patched. A rewrite leaves you with an empty building in scaffolding for months, which is worth it only when the foundation is wrong.

**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.

![A paper receipt titled Milestone 01, before and after, with paired bars for failures per week, time per run and cost per run.](https://www.southernsun.dev/guides/vibe-coded/milestone-before-after.png)

What a milestone ends in: failures per week, time per run and cost per run, before and after. The bars are a sketch, not a client's numbers.

## FAQ

### Is vibe-coded software bad?

No. It's the fastest way to find out whether an idea is worth building. The trouble only starts when a prototype quietly becomes the production system without anyone deciding it should.

### Can I keep using AI tools to build?

Yes, and you should. The difference is having someone who reads what gets generated, tests it, and decides what ships.

### Should I rewrite my vibe-coded app or fix it?

Fix it, in most cases. Repair keeps the app running and keeps what it learned about your customers. Rewrite only when the code can't leave the builder, the data can't be split the way the business now needs, or the app is small enough that rebuilding is faster.

### Is my vibe-coded app secure?

Assume not until someone has checked. The usual gaps are API keys sitting in the code, a database with no access rules, and nothing stopping a stranger from running up your AI bill. Most are quick to fix once someone looks, though a key that already leaked has to be replaced, not just moved.

### How long does it take to stabilize a vibe-coded app?

Plan on about two weeks for one core workflow, depending on what's there. Output quality and interface work come after, in their own steps.

### Do I need to hire a full-time engineer?

Not to start. A fixed, scoped repair tells you how much work is really there before you commit to a salary.

---

From Southern Sun's guides: https://www.southernsun.dev/guides. Questions or help: https://www.southernsun.dev
