# How do you take a prototype or vibe-coded MVP to production?

> A checklist for teams who built in Lovable, Bolt or Cursor: typing, environment variables, database, endpoints and tests before real users arrive.

Human view: https://hasty.se/en/insikter/prototyp-till-produktion-vibe-kodad-mvp
Agent view: https://hasty.se/en/insikter/prototyp-till-produktion-vibe-kodad-mvp.md

Languages: sv=https://hasty.se/insikter/prototyp-till-produktion-vibe-kodad-mvp | en=https://hasty.se/en/insikter/prototyp-till-produktion-vibe-kodad-mvp | no=https://hasty.se/no/insikter/prototyp-till-produktion-vibe-kodad-mvp | da=https://hasty.se/da/insikter/prototyp-till-produktion-vibe-kodad-mvp | fi=https://hasty.se/fi/insikter/prototyp-till-produktion-vibe-kodad-mvp

Publicerad: 2026-10-07T08:00:00

<p>A vibe-coded MVP is production-ready when five things are in place: strict typing, secrets in environment variables instead of in the code, a database with access rules, protected endpoints with validation, and automated tests for the key flows. Start with a quick audit – most prototypes need hardening, not a rewrite.</p>
<p>AI tools like Lovable, Bolt and Cursor make it possible to build a working prototype in days. What works in a demo is rarely built for real users, real data and real traffic.</p>
<p>Going to production means making the invisible robust: who can read which data, what happens when something fails, and how you know a change does not break something else.</p>
<h2>Checklist: from prototype to production</h2>
<table><thead><tr><th>Area</th><th>Common in the prototype</th><th>Required in production</th></tr></thead><tbody><tr><td>Typing</td><td>Loose types and any, errors found in the browser</td><td>Strict TypeScript and type checks in every build</td></tr><tr><td>Environment variables</td><td>API keys pasted into the code</td><td>Secrets only on the server, public keys kept separate</td></tr><tr><td>Database</td><td>Open tables without access rules</td><td>Row-level security (RLS), migrations and backups</td></tr><tr><td>Endpoints</td><td>Calls without login or validation</td><td>Authentication, input validation and clear errors</td></tr><tr><td>Tests</td><td>Manual click-testing</td><td>Automated tests for login, payment and forms</td></tr></tbody></table>
<h2>Harden or rewrite?</h2>
<p>If the data model holds and the flows work, hardening is almost always enough: move secrets, add access rules, validate input and write tests. A rewrite is only needed when the foundation cannot carry new requirements.</p>
<h2>In what order?</h2>
<p>Start with security – keys and database permissions – since they carry the biggest risk. Continue with validation and error handling, and finish with tests and monitoring so future changes are safe.</p>
<h3>Can a Lovable prototype go to production?</h3>
<p>Yes. Lovable produces standard React and TypeScript code with a real database, so the prototype can be hardened with access rules, validation and tests instead of being rebuilt.</p>
<h3>How long does it take to make an MVP production-ready?</h3>
<p>It depends on scope. An audit shows what is missing; the work is then planned by priority and risk.</p>
<h3>What is the most common risk in vibe-coded apps?</h3>
<p>Secret keys shipped to the browser in the code, and a database without access rules so anyone can read or change data.</p>
<h3>Do we need to rewrite the code from scratch?</h3>
<p>Rarely. If the data model and flows hold, hardening the existing code is usually enough.</p>

---

## Kontakt

- Allmänna frågor: hej@hasty.se
- Offert och nya uppdrag: christian@hasty.se
- Telefon: 08-480 04 706 (+46 8 480 04 706)
- Besöksadress: Bjurholmsplan 24, 116 63 Stockholm, Sverige
- Kontaktsida: https://hasty.se/en/kontakta-oss
- Förfrågan och personlig service: https://hasty.se/en/kontakta-oss
- Juridisk avtalspart: Norrhavet Group AB, org.nr 559258-3792, Stockholm, Sverige.
- Priser och kalkylator: https://hasty.se/en/priser

## Site maps for agents
- https://hasty.se/llms.txt
- https://hasty.se/llms-full.txt
- https://hasty.se/agents.md
- https://hasty.se/sitemap.xml

Hasty is a brand owned by Norrhavet Group AB (org.nr 559258-3792), Sweden.
