Vibe coding to production: what I rebuild before real users arrive

By Muhammad Sohaib Khan, Certified Senior AI & Software Architect6 min read

The short answer

Keep what a vibe-coded app proves: the idea, the screens users liked and the flow that works. Rebuild what it skips: authentication, data model, security, error handling, tests and deployment. Most prototypes need a structured rebuild of the foundations rather than a rewrite of everything, done before real customers and real data arrive.

What vibe coding is good at, and where it stops

Vibe coding means building software by describing it to an AI tool instead of writing the code yourself. It is a genuine shift: founders and teams now ship a working prototype in days, and test an idea with real people before spending on engineering.

The trouble starts when the prototype becomes the product. CIO reported in March 2026 on companies vibe-coding their own business apps and the risk of crippling technical debt when staff build without supervision. Forbes argued in April that the bottleneck is no longer production but judgement. Business Insider quoted a founder who expects a vibe-coded prototype to be rebuilt by trained engineers. That matches what I see when clients bring me one.

Prototype versus production, side by side

Vibe-coded prototypeProduction system
Who it servesYou and a few testersPaying customers and their data
Login and permissionsOften missing or shallowRoles, sessions and least privilege
SecretsSometimes in the codeServer-side environment variables only
Data modelGrows screen by screenDesigned, migrated and backed up
ErrorsUnhandledCaught, logged and alerted
TestsRareOn the paths that touch money and data
DeploysFrom one laptopRepeatable, with rollback
Two workers fitting a steel beam from an elevated platform on a building site

What I keep and what I rebuild

  • Keep: the product idea, the user flows people actually used, and the interface they liked.
  • Rebuild: authentication and permissions, so each user sees only their own data.
  • Rebuild: the data model and validation, so bad input cannot corrupt records.
  • Rebuild: secrets and payments, moved server-side and checked against the OWASP list.
  • Add: error handling, logging, tests on critical paths, and a deployment you can roll back.

A security check you can run today

Before anyone else uses your vibe-coded app, open the browser's developer tools and look for API keys in the page source or network calls. Try another user's record ID in the address bar. Submit a form with a script tag in it. If any of these work, the app is not ready for real users. Each takes minutes to test and is exactly what an attacker will try first.

How the rebuild works with me

  • A short review of your prototype and a written list of what to keep, fix and rebuild.
  • A fixed scope for the foundations, agreed before any work starts.
  • The rebuild in stages, with your app working at every step.
  • Handover: documentation, tests and a deployment your team can run.

How to decide

  • Still testing the idea with a handful of people? Keep vibe coding; it is the right tool.
  • Taking payments, storing personal data or onboarding customers? Rebuild the foundations first.
  • Already live and growing? Start with the security check above, then book a review.

Related reading

Sources

  1. CIO: Vibe coding your own enterprise apps is edgy business (Mar 2026)
  2. Forbes: Vibe coding will break your company (Apr 2026)
  3. Business Insider: Vibe coding is becoming a real job (Mar 2026)

Related service

Vibe Coding to Production

AI app builders are the best way ever invented to prove an idea. They are also where founders get stuck: the demo works, then real users, payments and data arrive. Sohaib takes vibe-coded prototypes from Lovable, Bolt, Replit, v0, Cursor and Claude Code and turns them into production software, keeping what users already love and rebuilding what will break.