Key takeaways
- Prototypes prove the idea. Production has to survive strangers, mistakes and growth.
- The usual failures are auth, exposed secrets, database rules, payments, missing tests and cost.
- Start with a short written audit, then decide whether to harden or rewrite the failing parts.
- The prototype is still your best specification, so keep it as a design reference.
- Own your repository, accounts and keys from day one.
Can a vibe-coded prototype go to production?
Yes, sometimes as it is, more often after a round of hardening. Tools like Cursor, Lovable, Bolt, Replit and v0 are very good at getting a working screen in front of you in an afternoon. That is a real gift for a founder who needs to test an idea. The trouble is that a prototype proves the idea works for one person on a good day, and production has to work for strangers on a bad one.
We see the same pattern often. A founder builds something impressive over a weekend, shows it to ten people, and gets real interest. Then someone asks to pay, or to sign up with a company email, or to upload a spreadsheet with customer data, and the weekend build starts to look thin. None of this means the prototype was a waste. It means you now know what to build properly.
What usually breaks first?
The things that break are rarely the screens. They are the invisible parts that a demo never exercises. Here is the short list we check first on any AI-built project.
- Authentication. Login works for you, but password reset, email verification, session expiry and role checks are missing or only enforced in the browser.
- Secrets in the client. API keys for payment, email or AI providers sit in front-end code where anyone can open the browser tools and copy them.
- Database rules. Tables are readable or writable by any logged-in user, sometimes by anyone, because the access policies were never written.
- Payments. The checkout appears to work, but webhooks are not verified, failed payments are not handled and refunds leave the account in the wrong state.
- No tests. Nothing tells you that today's change broke yesterday's feature, so each fix is a small gamble.
- Scaling and cost. A query that is fine with fifty rows crawls with fifty thousand, and an AI call on every page load turns into a surprising monthly bill.
What should a production audit check?
A production audit is a short, written review of the code, the data and the hosting that ends in a list of risks in plain English. It should take days, not weeks, and it should be readable by a non-engineer. Ours covers the checklist below.
- Who can see what: try to read another user's data with a second test account.
- Where the secrets live: search the repository and the built front end for keys, and check the git history for old ones.
- How data is stored: tables, relationships, backups, and whether you can restore from one.
- What happens when things fail: a payment webhook that arrives twice, an email provider that is down, an AI call that times out.
- What is tested: even a handful of automated checks on login and payments is a good sign.
- What it costs to run: hosting, database, email and AI usage at ten, a hundred and a thousand users, as a rough estimate.
- Do you own it: repository, domain, cloud and provider accounts should be in your company's name.
Should you harden the prototype or rewrite it?
Harden when the data model is sound and the problems sit at the edges, and rewrite the specific parts where the foundations are tangled. A full rewrite is rarely the right first answer, because you would throw away the one thing the prototype proved: that people want this.
A useful rule of thumb. If you can describe your core data (users, orders, projects, whatever it is) cleanly, and the code mostly follows it, hardening is usually faster and cheaper. If logic is duplicated across fifteen files, state is scattered, and each new feature breaks two old ones, the structure itself is the problem. Then we keep the screens and flows as a living design reference, and rebuild the back end and data layer properly underneath.
Either way, the prototype stays useful. It is the best specification you could have written, because it shows exactly what you want, clicked through and approved by real users.
How does a team take over an AI-built codebase?
We start with access and a read-only look, then write the audit before touching anything. You share the repository, the Figma or screenshots if they exist, and the accounts for hosting, database and providers. We sign a mutual NDA first, since the code and the data are yours and often sensitive.
Next comes a plan you can read. It lists the risks by severity, what we would fix first, and a price in USD per milestone for a fixed scope project, or a monthly team if the product will keep changing. The first milestone is usually security and data: lock down access, move secrets to the server, add backups. Users never see that work, but everything after depends on it.
Then the usual rhythm applies. You brief us at 5 PM, the work happens overnight in India, and a staging link is waiting at 9 AM your time, with a written handoff each day. Our custom software development page shows how we run these engagements.
What does the first week of hardening actually involve?
The first week is mostly unglamorous plumbing, and that is a good sign. We move every secret out of the front end and into server-side environment variables, rotate any key that was ever exposed, and write the database access rules so each user can only reach their own records. Rotating keys matters because a secret that has sat in a public repository, even briefly, should be treated as already copied.
Next we add a staging environment that is separate from production, with its own database and test payment keys. Many AI-built apps run everything against a single live database, which means every experiment touches real customer data. Separating the two is a small change that removes a whole category of late-night mistakes.
Then we write the first automated tests around the paths that cost you money if they fail: signup, login, checkout and the webhook that confirms a payment. We do not aim for perfect coverage on day one. We aim for a safety net under the five or six flows that matter, and we grow it as each new feature is added.
Last, we set up error reporting and simple uptime alerts, so a failure reaches us before it reaches your customer's support email. None of this changes how the app looks. All of it changes whether you can sleep.
Can you keep using AI tools after the handover?
Yes, and you probably should. The goal is not to ban the tools, it is to put guard rails around them. Once the project has tests, a staging environment and code review, AI-assisted coding becomes safer, because a bad suggestion gets caught before it reaches users.
We use these tools ourselves. What changes is that a person reads the diff, a test runs on every change, and someone owns the question of whether the result is correct. For marketing pages and front-end work, our web development team can pick up where the prototype left off. And if you are unsure where your build stands, send us a few lines and we will say what we would check first.
Questions people also ask
Try the simple tests first. Log in as a second user and see if you can reach the first user's data, then search your deployed front end for API keys. If either check fails, pause the launch and get an audit.
Usually not all of it. Screens, flows and copy often survive. The part most likely to be rebuilt is the data layer and server logic, because that is where security and reliability live.
You do. Our agreement assigns all source code and IP to your company, and the work happens in your own GitHub and cloud accounts.
It depends on the size of the codebase, but it is a short exercise compared with a build. You get a written list of risks and a proposed plan, so you can decide with real information.
Related services
Written by the Trennect engineering team, Ahmedabad. Published October 28, 2026.



