Websites and development
Your AI-built app broke: rescue it or rebuild it? A cost and risk guide
Rescue the app when its data model is sound and the faults fit on a list; rebuild it when every fix breaks something else or the data itself is tangled. Published 2026 prices run from about $299 for one quick fix to $20,000–$60,000 for a rebuild. VITON13's rescue package costs $73 AI-assisted or $93 human-led.

What is usually wrong when an AI-built app breaks?
Apps generated with Lovable, Bolt, Replit, v0 or Cursor tend to fail in the same places: the tools optimise for a demo that works on screen, not for real users, real data and a second developer. The symptom is rarely the cause, so match it first.
| What you notice | Likely cause | Quick check | Urgency |
|---|---|---|---|
| Users see other people's records | Row-level security (RLS) off or too loose on Supabase tables | Log out and query a table with the public anon key | Critical: today |
| An AI or email bill jumps; a key shows in the page source | A secret in a VITE_ or NEXT_PUBLIC_ variable, shipped to the browser | Search the built JavaScript for key prefixes | Critical: today |
| Fixing one screen breaks another | Logic copied into several files, no automated tests | Look for duplicated functions and any test run | High: this week |
| Payments or sign-in work in preview, not live | Production keys, webhooks or redirect URLs never set | Compare preview and production settings | High: this week |
| Pages slow down after a few hundred records | Queries in loops, missing indexes, whole tables sent to the browser | Count requests in the Network tab on one page load | Medium: this month |
This is not bad luck. In Veracode's 2025 tests of more than 100 language models, 45% of code samples failed security checks. GitClear's review of 211 million changed lines saw copy-pasted code rise from 8.3% to 12.3% between 2020 and 2024, and duplicated logic often lets a bug fixed in one place survive in another.
What should you do in the first 48 hours?
Work in order of damage, not annoyance: a slow page loses some visitors, an open database can lose your customers' data.
- Freeze and copy: stop prompting the builder to “fix it” on the live app, push the code to a Git repository you own and back up the database.
- Close the leaks: rotate every key that has been in the browser or the repository, move secret calls to the server, enable RLS on every public table and test it logged out.
- Protect the data: find duplicated or orphaned records and put delete, refund and bulk-edit actions behind a role check.
- Keep it up: add error logging, then walk through sign-in, payment and the main order flow by hand.
- Only then, speed: indexes, pagination and caching.
If personal data may have leaked and you serve people in the EU, GDPR Article 33 gives the controller 72 hours from becoming aware of it to notify the supervisory authority, unless the breach is unlikely to put people at risk. A lawyer writes the notice; a developer tells you what was exposed and since when.
Rescue or rebuild: how do you decide?
Check five signals. If two or more land in the right-hand column, ask for a rebuild estimate before paying for more fixes.
| Signal | Points to a rescue | Points to a rebuild |
|---|---|---|
| Data model | Tables match how the business works | Duplicated records, contradictory statuses, unlinked tables |
| Reach of a typical fix | A few files | Most of the app, and something else breaks |
| Tests | Key flows can be tested as they are | Nothing is testable without a rewrite |
| Who holds the code | It exports to Git on a mainstream stack | The logic is locked inside a builder |
| Users and data | Real users and records that must survive | No users yet; it was a test of an idea |
Joel Spolsky's classic argument against rewrites is that old code holds years of bug fixes found in real use. An app generated over two weekends has no such history; its value is the data, the flows users rely on and what you learned. So a rebuild wastes less than it sounds, provided the live app keeps running meanwhile.
The safest middle route is what Martin Fowler calls the strangler fig: new, tested parts take over one flow at a time behind the running app. One cleanup guide's rule of thumb: clean up while the total stays under $5,000, and rebuild when estimates pass $8,000 and the app took only days to build.
What does a rescue cost on the market in 2026?
These are asking prices published by companies that sell the work, not audited averages.
| Scope | Published price | Typical time | Source |
|---|---|---|---|
| One quick fix by a freelancer | From about $299 | Not stated | vibecoding.app, Mar 2026 |
| One database-rule or exposed-secret fix | $200–$500 | Not stated | vibecoding.app, Mar 2026 |
| Audit plus fixes | $3,000–$5,000 | 2–3 weeks | vibecoding.app, Mar 2026 |
| Fix in place | $3,000–$15,000 | 2–6 weeks | InApps Technology (Jun 2026) via Axonbuild |
| Rebuild | $20,000–$60,000 | 8–16 weeks | InApps Technology via Axonbuild |
| VITON13: one verified bug fix | $13 AI-assisted or $33 human-led | 1–2 working days | VITON13 service page |
| VITON13: Site Fix Pack, up to five agreed fixes | $33 AI-assisted or $53 human-led | 1–2 working days | VITON13 package |
| VITON13: AI-generated code rescue | $73 AI-assisted or $93 human-led | 5–8 working days | VITON13 service page |
Why the gap? Our packages are narrow and fixed: one fault, five listed faults, or a rescue that maps failures, protects critical flows and ships agreed repairs. A $20,000 rebuild is another product. If the failure map shows you need one, you get its estimate in writing first, and the map becomes its specification.
What makes one rescue cost ten times more than another?
Axonbuild counted about 3.4 critical issues per app, plus roughly 40 optional findings, across 21 AI-built apps it audited in June and July 2026. The critical few set the price, and these factors set how hard they are:
- Roles: admins, staff and customers mean every rule is checked per role.
- Several client companies in one database: separating tenants runs $3,000–$8,000 in the vibecoding.app list.
- Payments and webhooks: tested in the provider's sandbox before anything changes.
- Integrations: each adds keys, limits and failure cases.
- Access: Git, a staging copy and logs beat screenshots and a shared login.
- Timing: the same guide puts cleanup before launch at two to five times cheaper than after.
Can you keep building with AI after the rescue?
Yes. Developers themselves are wary: in Stack Overflow's 2025 survey, 66% named AI answers that are “almost right, but not quite” as their top frustration. Keep AI, but put checks between the prompt and production:
- Every change goes through Git and a pull request, even when AI wrote it.
- Tests on sign-in, payment and the main flow block a failing release.
- Secrets stay on the server; the browser gets publishable keys only.
- Each release is checked before it goes live and can be rolled back.
- A person who reads code approves changes to data rules and permissions.
QA and test automation sets up that net without a rescue, for $73 AI-assisted or $93 human-led.
What should you send to get an accurate quote?
- Read access to the repository, or an export from the builder.
- The stack: builder, database, hosting, sign-in and payments.
- Three failures written as steps: what you did, expected and got.
- The flows that bring in money or leads, ranked.
- How many users there are and what personal data is stored.
Never paste passwords into a chat; create collaborator accounts you can revoke after handoff.
When should you not pay for a rescue?
- The app has no users and was a test of an idea: note what you learned and build a clean version from a proper spec.
- The fault is in the platform itself: report it to the builder's support first.
- You need a new feature, not a repair: that is development and is priced as such.
- You are about to pivot: rescuing code you will discard next month means paying twice.
Be wary of anyone who promises to fix everything in a day without reading the code.
How VITON13 does it
We take over apps built with Lovable, Bolt, Replit, v0, Cursor or code pasted from a chatbot and bring them to a state a developer can own. AI-assisted: AI reads and drafts, an engineer decides on and checks each change. Human-led: an engineer does the work, AI assists. Within one working day you get a written scope, timeline and final price; nothing starts before you approve it.
AI-generated code rescue
- Price
- $73 AI-assisted or $93 human-led
- Timeline
- 5–8 working days
Website bug fixing
- Price
- $13 AI-assisted or $33 human-led
- Timeline
- 1–2 working days
Site Fix Pack
- Price
- $33 AI-assisted or $53 human-led
- Timeline
- 1–2 working days
AI-assisted: AI drafts inside defined steps, a person directs and checks every result. Human-led: a specialist does the work and AI assists.
What is included
- A reproducible failure map: steps, cause and severity for each fault
- Exposed keys and database access rules handled first
- Sign-in, payment and order or enquiry routes guarded by checks that fail visibly
- Agreed repairs in small releases, each with a written way back
- A repair and ownership plan: next fixes, rescue or rebuild, who holds which account
- Delivery: 5–8 working days once code, hosting and database access is granted
Not included
- New features, redesign and full rebuilds, quoted separately
- Hosting, database, builder plans and paid API usage
- Legal advice and notices to regulators
- Manual data clean-up and support after handoff
Revisions: 2 review rounds on the failure map and the repair plan; a single bug fix has 1
Get an estimate in 1 working dayWritten estimate within 1 working day
Example
INTERNALOur own product
viton13.com: the release checks we run on our own codebase
Our site is one Next.js 16 application serving seven hosts in five languages. A release goes live only after SEO and content checks, a production build and a crawl of the built release on an isolated port; a failed gate stops it and the live site stays unchanged. On 19 September 2026 that crawl covered 18,987 internal routes with no broken response. After the switch, 76 live routes are checked, a failure restores the previous release automatically, ten rollback copies are kept, and the codebase holds 175 automated test files. A rescue installs a smaller version of the same idea.
What this does not prove
- It is our own site, not a rescued client app: no before-and-after figures exist.
- The case does not record how much of the code AI wrote, so it proves nothing about AI-generated code as such.
- Speed, traffic and sales were not measured.
- The crawl covers internal routes, not security rules.
Read the case: viton13.com: a Next.js site in five languages across seven hosts
Questions and answers
How fast can you start on an app that is broken in production?
The written estimate arrives within one working day, and work starts when you approve it and grant access. A single fault takes 1–2 working days. If data is leaking, containment comes first: rotating keys and closing database access before the full failure map is ready.
Will I own the code after the rescue?
Yes. The code stays in your repository and the hosting, database and payment accounts stay in your name; we work through collaborator access you can revoke. Under VITON13's terms, rights in the delivered work pass to you when the final price is paid.
What if the AI suggests a wrong fix?
An engineer decides what ships: the fault must reproduce before the change and vanish after it, while the neighbouring flows still pass their checks. A change that fails that test does not ship. Human-led mode, at $93, keeps an engineer on every line.
How many revision rounds are included?
The rescue includes 2 review rounds on the failure map and the repair plan; a single bug fix includes 1. New requests that come up during review are priced separately, in writing, before any work on them starts.
How do I pay, and what if I cancel?
Prices are in US dollars and fixed in the written scope. Cancelling costs nothing until you approve that scope; once work has started, you pay for what is done and the rest is refunded, as the sales policy sets out. No account is needed to ask for an estimate.
Is it cheaper to ask the AI builder to fix it again?
For a small visual bug, often yes. For security rules, data problems or fixes that keep breaking other screens, more prompts tend to burn credits without finding the cause, because each one patches what is on screen. Stop when the same fault returns a second time.
Sources
- vibecoding.app — Vibe code cleanup cost 2026 —
- Axonbuild — Vibe coding cleanup cost 2026 —
- Veracode — 2025 GenAI Code Security Report —
- Matt Palmer — CVE-2025-48757 (Lovable) —
- Supabase — Row Level Security —
- Vite — Env variables —
- Next.js — Environment variables —
- GitClear — AI code quality 2025 —
- Stack Overflow — 2025 Developer Survey, AI —
- Joel Spolsky — Things You Should Never Do, Part I —
- Martin Fowler — Strangler Fig Application —
- GDPR — Article 33 —