Quick answer To move a vibe coded prototype to production, list what's fake, move the code into Git, fix the security gaps and test the flows that matter most. Then share a private preview with a few testers. Launch on your own domain with a version you can roll back to, and watch errors and traffic for the first few weeks.
Key takeaways
- Start by finding what's fake. Prototypes often run on sample data and forms that send nowhere, so list those parts before you fix anything.
- Put the code in Git before you change it. A repository you own keeps every change, so any edit the AI makes can be undone.
- Security comes before features. Veracode found security flaws in 45% of the AI-written code it tested, so check your keys and database rules first.
- Preview privately, then go public. A private link lets testers and stakeholders break the app before strangers do.
- Every release should be a version you can return to. If launch day goes wrong, going back to the last good version takes one click or one command.
Your prototype works perfectly, as long as you’re the one using it.
You know to skip the button that does nothing and to log in with the test account. The first stranger who signs up won’t know either trick.
Taking a vibe coded prototype to production closes that gap. You keep everything that already works and add what the AI skipped because nobody asked for it, like real logins and a way to undo a bad release.
The Short Answer
Here are the seven steps side by side.
| Step | What You Do | You’re Ready When |
|---|---|---|
| 1. Find what’s fake | Walk through every screen and mark what’s real, hardcoded or missing | Every fake part has a plan to fix it or cut it |
| 2. Own the code | Move the project into a Git repository you control | You can rebuild the app from the repository alone |
| 3. Lock down security | Move keys out of the code and check logins and database rules | No secret shows up in the repository or the browser |
| 4. Add tests | Write tests for sign-up, login, payment and the main task | Tests run on every change and pass |
| 5. Preview privately | Share a private link with testers and stakeholders | Testers finish the main task without your help |
| 6. Launch with a way back | Connect your domain, go public and keep the last good version ready | You know the exact rollback step and version number |
| 7. Watch and fix | Track errors, uptime and traffic | Alerts reach you before complaints do |
Why a Vibe Coded Prototype Breaks in Production
AI tools write code for the request in front of them. Ask for a sign-up form and you get one that works when everything goes right, because nobody mentioned what should happen when it doesn’t.
Engineers call this happy-path code. It covers the one route you tested. The gaps usually show up in four places.
- Missing error handling. Nothing happens when the connection drops, someone double-clicks Pay or an email is already taken.
- Secrets in the code. API keys for OpenAI, Stripe or Supabase sit in files the browser downloads. In GitGuardian’s latest report, AI-assisted commits leaked secrets at roughly double the GitHub average1.
- Open database rules. Tables with no access rules switched on, so anyone who finds the right request can read or change the data.
- No tests. Each new prompt can break something that worked yesterday, and you hear about it from a user.
Veracode’s GenAI Code Security Report checked code from more than 100 AI models and found security flaws in 45% of the code samples2. Newer and larger models didn’t do any better.
None of this means the prototype was a mistake. It proved the idea, which was its job, and now it needs a different kind of work.
Step 1: Find What’s Fake in Your Prototype
Before you fix anything, walk through the app and write down what really happens on each screen. Prototypes are full of parts that look finished and aren’t.
These are the usual suspects.
- Hardcoded data. A list of 12 sample customers written straight into the code, so every visitor sees the same people.
- Forms that go nowhere. A success message appears, but nothing is saved or sent.
- Pretend logins. Any password works, or there’s no login at all behind the pretty sign-in screen.
- Test-mode payments. The Pay button changes the screen and never charges a card.
- Browser-only storage. Data saved in localStorage, which lives in one browser on one device and disappears when someone clears it.
Your AI can do most of the reading for you. Ask it for a list and keep it from editing while it looks.
Prompt for your AI (reads only):
Compare the AI’s list with your own walk-through. It reads the code, but it can’t see what an outside service like Stripe or your email tool does with a request.
Mark each item as fix now, fix later or cut. Cutting is a real option, and a feature nobody touched during the demo can wait for the next version.
Step 2: Put the Code Somewhere You Own
If the app only lives inside a chat or a builder’s editor, you don’t fully control it. A Git repository fixes that, because it keeps every change with a note on what changed and when.
Git is the system that tracks those changes, and GitHub is the most popular place to keep a Git project online. A free GitHub account is enough to start, and the repository can stay private.
You don’t need to learn the commands first. Claude Code, Cursor and Codex work inside a project folder, so asking them to set up a repository and make the first commit takes one message.
Start one habit right away. Commit before every AI change, so any edit that goes wrong is a single command away from being undone.
Once the repository exists, you can publish from Git on Spacefast. Each push to your production branch builds a new version of the live site, and pushes to any other branch become previews with their own address3.
Treat the repository as your source of truth. Only committed files get published, and anything uncommitted on your laptop has no backup.
Step 3: Lock Down Security Before Real Users Arrive
This step protects your users’ data. Start with two checks, then ask your AI for a review.
Move Every Secret Out of the Code
A secret is any key or password that lets someone use a paid service or reach your data. If it sits in code the browser downloads, anyone can open developer tools and copy it.
Search the project for names like API_KEY and SECRET, and for keys starting with sk_. Move each one into environment variables on your host.
Then create a new key for each service, since the old one may already be in your Git history.
On Spacefast, a new environment variable is a secret by default. Secret values are write-only and reach server code only, so they never end up in files a visitor can download4.
Check Who Can See What
Log in as one test user and try to open another user’s page by changing the ID in the address bar. If it opens, the app checks that someone is logged in. It never checks whose data they asked for.
If your app uses Supabase, turn on row level security for every table. Supabase’s own guide warns that a table without it can be read and changed by any role with access to it5.
Ask Your AI for a Security Review
Prompt for your AI (reads only):
Fix the list one item at a time, with a commit after each fix. If the app takes payments or stores personal details, book a human review as well, even a short one.
Step 4: Add Tests for the Flows That Make You Money
A test is a small script that uses your app the way a person would and checks the result. You don’t need one for every button.
Start with three to five tests for the flows you can’t afford to break. For most apps that means sign-up, login, the main task the app exists for and payment if you charge.
Playwright is a free, open source tool from Microsoft that clicks through your app in a real browser. When a flow breaks, the test fails and shows you the step.
Your AI can write the first tests if you describe each flow in plain words.
Prompt for your AI (asks before changing):
Then make the tests run on their own. A GitHub Actions workflow can run them on every push, and a red mark next to a commit shows you which change caused the problem.
Add one more habit after launch. Each time a user reports a bug, write a test that reproduces it before you fix it, so the same bug can’t quietly come back.
Step 5: Share a Private Preview Before You Go Public
The cheapest place to find a problem is in front of a few people who know the app isn’t finished. A private preview is a copy of the app at a real address that only the people you invite can open.
Keep the list short. Two or three people who look like your users, plus anyone who has to approve the launch, like a co-founder or the client paying for it.
Testers will create accounts and save real data, so the app has to store it somewhere that lasts. If it still keeps data in the browser or a sample file, add a database now, while only friendly people are using it.
On Spacefast, each Space can run its own MySQL database next to the site. The tables update when you publish a new version6.
Your AI can publish the preview for you.
Prompt for your AI (runs right away):
A private Space opens only for your team and the people you add. From the Space’s sharing settings, invite testers by email or create a share link limited to viewing or commenting7.
Testers don’t take up seats. On Spacefast, people who only review or comment don’t count as members on your plan8.
Every version also gets its own fixed address, like my-site–v7.space.fast, so a tester can compare today’s build with last week’s9.
Give each tester one task to finish without your help, then watch where they stop. Every spot where someone gets stuck goes on the fix list before launch.
Step 6: Launch With a Way Back
Launch day goes better when nothing about it is new. Do the setup work a few days early, so the only change on the day is who can see the app.
Connect Your Domain Early
DNS is the system that points a domain name at the server holding your site. Changes can take hours to settle, so do this a few days before launch.
On Spacefast, a root domain like example.com usually needs two A records plus a CNAME for www. Remove old A records from your previous host first, because a leftover one blocks the check. Remove old AAAA records too, or visitors on IPv6 keep landing on the old site10.
HTTPS, the padlock in the address bar, switches on once DNS points to Spacefast. Custom domains come with every plan, including the free Personal plan8.
Make Every Release a Version You Can Return To
Each publish on Spacefast creates a version, a snapshot that never changes once it’s ready. Your live address points at one version at a time, and you decide which.
If launch day goes wrong, you point it back at the last good version. In the dashboard that’s Roll back to on the Overview page, and from the command line it’s sf rollback followed by the version number.
Versions are kept until you delete them, on every plan9. Rollback swaps the files people see, so test any change to your database in the preview first.
Write the rollback step down before launch, with the number of the last good version next to it. On the day, undoing a bad release is a step you already know.
Go Public
When testers sign off, set General access to public. The invites and share links you sent stay in place.
Check plan limits before you announce. Compare Spacefast plans if you need teammates or more Spaces. Adding members starts on Pro, which includes 5, and Go and Pro back up databases hourly instead of daily8.
Step 7: Watch the App After Launch
The first weeks after launch show you what testing missed. Set up alerts before you announce, so problems reach you before complaints do.
- Errors. Sentry catches crashes in the browser and on the server. Its free Developer plan covers 5,000 errors for one user11.
- Uptime. UptimeRobot’s free plan checks up to 50 addresses every five minutes and tells you when your site stops answering12.
- Traffic. Spacefast shows views, daily visitors and your 10 busiest pages for the last 48 hours, 7 days or 30 days, under Settings and then Stats13.
- Logs.
sf logsshows requests that reached your Space’s server,sf logs edgeshows the ones answered from cache, andsf logs runtimeshows what your own server code printed14.
For the first week, read new errors and the support inbox at the same time each day. Matching a complaint to an error from the same hour makes the cause easier to find.
Fix problems with the same loop you used to launch. Write a test for the bug, publish to a preview, check it there and then make that version live.
Keep a running list of what users ask for that the prototype never had. That list is your plan for the next version.
Your Vibe-Coded Prototype to Production Checklist
Copy this into your tracker and tick each line before you move to the next step.
1. Find what’s fake
- Every screen walked through and fake parts listed
- Each fake part marked fix now, fix later or cut
2. Own the code
- Project in a private Git repository you control
- Commit made before every AI change
3. Lock down security
- No API keys, passwords or tokens in the code
- Old keys replaced and new ones stored as secrets
- One user can’t open another user’s data
- Database access rules switched on for every table
4. Add tests
- Tests for sign-up, login, the main task and payment
- Tests run automatically on every push
5. Preview privately
- Data saved in a real database
- Private Space shared with testers and approvers
- Every tester finished the main task alone
6. Launch with a way back
- Domain connected and HTTPS active days before launch
- Last good version number written down with the rollback step
- Space switched to public
7. Watch and fix
- Error tracking and uptime alerts set up
- Traffic and logs checked daily for the first week
Conclusion
Your prototype already did the hard part by proving people want the idea. Getting it to production is steady work done in order, and each step makes the next one safer.
Start with the checklist and a private preview. Connect your AI to Spacefast and publish your first private Space from the chat you already have open.
FAQ
Should I Rebuild My Vibe Coded Prototype or Fix It?
Fix it in most cases. Rebuild only when Step 1 shows the core of the app is fake, like a booking tool with no real bookings behind it. The screens and flows you already tested still work as a map for the new version.
Is a Vibe Coded Prototype Safe to Launch?
Not straight out of the chat. Veracode found security flaws in 45% of the AI-written code it tested, so fix the gaps in Step 3 first. For an app that takes payments or stores personal details, add a human review.
Do I Need a Developer to Take a Prototype to Production?
Not for every step. A founder can do the audit, the Git setup and the preview with an AI coding tool. If the app handles money or personal data, pay a developer for a few hours on security and tests.
What’s the Difference Between a Preview and Production?
A preview is a private copy of the app that only invited people can open, used for testing and feedback. It stays private even after the app goes public. Production is the version the public sees at your real domain. On Spacefast both live in the same Space, and going public is one setting.
How Do I Roll Back a Bad Release?
Point your live address back at the last version that worked. On Spacefast that’s one click in the dashboard or one command, and Step 6 shows both.
Can I Use My Own Domain on Spacefast?
Yes, on every plan, including the free Personal plan.15 Add the domain in Spacefast and copy the DNS records it shows into your registrar.
Which AI Tools Work With This Plan?
All of them, since the steps don’t depend on how the code was written. To publish from your AI, Spacefast has setup guides for ChatGPT and Claude and plugins for Claude Code, Cursor and Codex.16
