Service

Rescue for apps built with AI coding tools: from working demo to production

Apps generated with AI coding tools often work in a demo and fail with real users: data visible to the wrong people, keys in the browser, payments that are not verified, no tests and no way back from a bad deploy. WavX reviews the code against a fixed checklist, tells you whether to repair or rebuild, and fixes the parts that put data and money at risk first.

Get a technical assessment Last updated 2 October 2026

Why AI-built apps fail in production

AI coding tools such as Lovable, Bolt, Replit, v0 and Cursor are good at producing an app that looks and behaves right when one person clicks through it. Production is different: many users at once, some of them hostile, real money, real personal data, and changes made every week.

The faults that appear are rarely in what you can see. The screens usually work. The problems sit underneath, in parts nobody asked the tool about:

  • Who can see what. The tool built a login, but the database will hand any row to anyone who asks the right way.
  • What happens when something fails. The payment gateway times out, the network drops, the user double-clicks. The demo never did these.
  • What changed and how to undo it. Each prompt rewrote several files. There is no record of which change broke checkout.

This is a kind of software rescue, with its own checklist. WavX takes over these apps, reviews them, and repairs or rebuilds the parts that put data and money at risk.

The most common fault: open data

Apps built on Supabase, which Lovable integrates with for its database, authentication and server functions, let the browser talk to the database through a public API. That is a reasonable design when access rules in the database are correct, and a serious exposure when they are missing.

Supabase states it plainly in its documentation: enable Row Level Security on every table in an exposed schema, because a table in an exposed schema without it is readable and writable by any role with a grant on it. The same documentation says a secret key bypasses those rules and must never be used in the browser. Lovable's own documentation says missing RLS policies are the most common way app data gets exposed, and that its tool runs automated checks for RLS coverage.

An automated check is a start. It cannot tell whether a policy that exists is the right policy: whether a customer can only see their own orders, whether a staff member can edit prices, whether a deleted user's data is really gone. That takes a person reading the rules against how the business works.

The review checklist

WavX reviews AI-built code against a fixed list. The security items follow the categories of the OWASP Top 10:2025, which puts broken access control first.

Area What we check Typical fault found
Access control Every table, endpoint and file bucket: who can read, write, delete Rules missing, or written so any logged-in user sees everyone's data
Secrets Where keys live; what ships to the browser Payment, email or admin keys in front-end code or the repository
Authentication Sign-up, login, password reset, sessions, roles Role checked in the browser only; reset links that never expire
Data model Tables, relations, constraints, duplicates No unique or foreign-key constraints; the same data stored in three places
Payments Order creation, gateway callbacks, refunds Order marked paid on the browser's say-so instead of a verified webhook
Error handling Timeouts, retries, failed calls, user-facing messages Errors swallowed; blank screens; half-written records
Dependencies Packages, versions, known vulnerabilities, unused code Packages added and never used; outdated versions with known issues
Tests What is tested and whether tests run None, or generated tests that pass without checking anything
Deployment How code reaches production; environments; rollback Edits go straight to the live app; no staging; no way back
Logging and monitoring Whether failures are recorded and someone is told Nobody knows something broke until a customer says so
Performance Queries, page weight, behaviour with real data volumes Fast with ten rows, unusable with ten thousand
Ownership Repository, database, hosting and domain accounts Everything in a founder's personal account or a tool's workspace only

You receive the findings in plain language, each marked urgent, important or cosmetic, with a recommendation.

Repair, harden, or rebuild

Recommendation When it applies
Harden The structure is reasonable. Close the access and secrets issues, add error handling, tests around money and data, and a proper deploy process.
Repair the core, keep the screens The interface is fine, but the data model or access rules cannot be fixed in place. Replace the backend underneath, keep what users see.
Rebuild The app has outgrown what was generated and every change breaks something else. Rebuild with the working app as the specification.

The first job in every case is the urgent list: lock down open data, rotate any exposed keys, and take a backup. That comes before any other change is made.

What you need to give us

  • The code, exported to a Git repository your company owns. Lovable, for example, documents export and two-way sync with GitHub; for other tools, use their export or download option.
  • Admin access to the database and hosting, such as the Supabase project and the hosting account.
  • Access to third-party accounts: payment gateway, email, SMS, analytics.
  • A list of what the app is supposed to do, and what currently goes wrong. Screenshots and user complaints are useful.

If accounts sit in a personal login of a former developer or co-founder, the steps in what to secure when your developer leaves apply here too.

What it costs

The review is quoted once we have seen the size of the codebase, and repair is quoted after the review. WavX does not publish a figure for rescue work, because it depends on what the review finds.

For comparison, the model behind the software cost estimator puts a rebuild of a small custom web application with roles and payments (base ₹4,50,000 + auth and roles ₹60,000 + payments ₹90,000) at a planning range of ₹5,10,000 to ₹7,50,000. If repair is quoted near that figure, a rebuild deserves serious consideration.

Timeline

  1. Access and urgent fixes. Open data closed, keys rotated, backup taken.
  2. Review. The checklist above, delivered as a written report.
  3. Decision. Harden, repair the core, or rebuild, with a quote.
  4. Repair. Urgent items first, then important ones, with tests added around each fix.
  5. Ongoing. New features on a codebase that can take them, whether or not you keep using the AI tool.

When you do not need this

  • The app is an internal prototype with no real data. Keep iterating with the tool; review before real users arrive.
  • It holds no personal or payment data and only a few people use it. Turn on the tool's own security checks and fix what they flag.
  • A standard product would do the job. If what you generated is a store, a booking page or a form, a hosted product may be cheaper to run than any custom code. The no-code versus custom guide helps decide.

The website security checklist is a useful self-check before you ask anyone for a review.

Frequently asked questions

Can you work on an app built with Lovable, Bolt, Replit, v0 or Cursor?

Yes, provided you can export the code to a repository you own and give us access to the database and hosting. The tool used matters less than what it produced. We review the code the same way we review code a person wrote, with extra attention to the faults these tools tend to leave.

Do we have to stop using the AI tool?

Not necessarily. Some teams keep generating new screens with the tool and have a developer review and harden each change. Others move to ordinary development once the app has paying users. We will recommend one based on how often you change the app and how much is at stake if a change goes wrong.

How much does it cost to fix?

The review is quoted after we see the code, and repair is quoted after the review, because the cost depends on what it finds. We do not publish a figure for rescue work. For comparison, a rebuild of a typical small web app with logins and payments has a planning range of about ₹5.1 lakh to ₹7.5 lakh in the WavX cost model.

Is our data already exposed?

We check that first. If the database is reachable from the browser without row-level rules, anyone who finds the public key can read or change it. The review tells you whether that is the case, what was reachable, and what to do about it, including whether you may have duties to notify people under India's data protection rules.

Will you rewrite everything?

Only if the review shows that repair would cost more than a rebuild. Much of what these tools generate, especially screens and layouts, is often worth keeping. The data model, access rules and payment handling are the parts most likely to need replacing.

Sources

  1. Supabase docs: Row Level Security (enable RLS on every table in an exposed schema; secret keys bypass RLS and must never be used in the browser) · read 2 October 2026
  2. Lovable docs: Supabase integration (security checks for RLS coverage; missing RLS policies as the most common way app data gets exposed) · read 2 October 2026
  3. OWASP Top 10:2025 · read 2 October 2026
  4. Lovable docs: GitHub integration (export and two-way sync) · read 2 October 2026
  5. DPDP Rules, 2025 notified: explainer dated 17 November 2025 (Press Information Bureau): breach notification to affected individuals · read 2 October 2026
  6. Bolt: build apps and websites by chatting with AI · read 2 October 2026
  7. Replit: turn ideas into apps by describing them · read 2 October 2026
  8. v0 by Vercel: AI agent that creates code and full-stack apps · read 2 October 2026
  9. Cursor: coding agent · read 2 October 2026

Related

Build your own software — your way, your pricing.

WavX Solutions is here to create your own software in a fully custom way, built exactly how you work — with a pricing model that fits your business. Connect now and let's build it.