Nice To E-Meet You!



    What marketing services do you need for your project?

    How To Deploy A Vibe-Coded App To Production

    Last updated: December 4, 2026

    To deploy a vibe-coded app to production, export the code to GitHub, pick a host that matches what the app does (Vercel or Netlify for front ends, Fly.io, Railway or Render for apps with a server and database), move every API key into environment variables, set up a managed database with backups, connect a custom domain, then add error monitoring and spending limits before you announce anything. Most apps can go from builder preview to production in a day.

    AI builders make the first 80% of an app quick. The last 20%, making it safe, stable and affordable for real users, is where most vibe-coded launches stumble. This guide covers that last stretch in plain language.

    Step 1: Get Your Code Into GitHub

    Before anything else, put the code in a GitHub repository. Most builders, including Lovable, Bolt, v0, Replit and Cursor projects, can export or sync to GitHub.

    GitHub gives you version history, so you can undo a bad AI change, and every major host deploys directly from it. It also means you are never locked into one builder.

    Commit often with short messages. When an AI edit breaks something, you can see exactly what changed.

    Should the repository be private?

    Yes, for most commercial apps. It also reduces the risk of leaking secrets.

    What if my builder cannot export?

    Copy the project files manually, or rebuild in a tool that can. Avoid launching a business on code you cannot access.

    Step 2: Understand What Your App Actually Is

    Ask your AI assistant to describe the project: which framework, whether there is a server, which database, which external APIs and which environment variables it expects. Write the answers down.

    This decides your host. A React or Next.js front end that talks to Supabase or Firebase can run on Vercel, Netlify or Cloudflare. An app with an Express, FastAPI, Rails or Django server, background jobs or WebSockets needs a host that runs servers, such as Fly.io, Railway or Render.

    Our list of hosting platforms for vibe-coded apps explains each option in more detail.

    What is a background job?

    Work that runs after the user’s request, such as sending emails or processing files. It needs a worker process, not just a web page.

    Can one host do everything?

    Fly.io, Railway and Render can run the front end, server and database together.

    Step 3: Lock Down Secrets and API Keys

    AI-written code often puts API keys directly in files, sometimes in code that runs in the browser where anyone can read them. Search the project for keys and move every one into environment variables on your host.

    Keys for services like OpenAI, Stripe or your database must only be used on the server. If a key was ever committed to GitHub or exposed in the browser, rotate it in the provider’s dashboard.

    Check your database rules too. Supabase row level security and Firebase security rules must be turned on and tested, or any user may read everyone’s data.

    How do I know if a key is exposed?

    Open your live site, view the page source and network requests, and search for the key. GitHub also alerts on many leaked secrets.

    Should I trust the AI to fix security?

    Use it to help, but verify. Ask a developer to review authentication and data access before launch if you handle personal or payment data.

    Step 4: Set Up a Production Database

    Preview databases inside builders are not always meant for production. Use a managed database with automatic backups: Postgres on Railway, Render or Fly.io, or a hosted service like Supabase or Neon.

    Keep separate databases for development and production so testing never touches real customer data.

    Test a restore from backup once before launch. A backup you have never restored is a hope, not a plan.

    Which database should I choose?

    Postgres is the safe default for most apps and works with almost every host.

    How do I move data from my preview?

    Export from the preview database and import into production, or start production clean if the preview data was test data.

    Step 5: Deploy and Connect a Custom Domain

    Connect the GitHub repository to your chosen host and add the environment variables. Most hosts detect the framework and build automatically. On Fly.io, the fly launch command generates a configuration for you; on Railway and Render, you connect the repo in the dashboard.

    Add your custom domain in the host’s settings and update DNS records at your domain registrar. HTTPS certificates are issued automatically by most platforms.

    Click through every key flow on the live domain: sign up, log in, pay, and any action that writes data.

    How long do DNS changes take?

    Often minutes, sometimes a few hours. Lower the record’s TTL beforehand if you are switching an existing domain.

    Should I use www or the bare domain?

    Either works. Pick one and redirect the other to it.

    Step 6: Add Monitoring and Error Tracking

    You need to know when something breaks before users tell you. Add an error tracker such as Sentry and an uptime monitor that checks your site every minute.

    Turn on logs in your host’s dashboard and learn where to find them. When an AI-written function fails, the log usually explains why.

    Set up alerts to email or Slack for downtime and error spikes.

    Do I need paid monitoring?

    Free tiers of most monitoring tools are enough for a new app.

    What should I monitor first?

    Uptime of the home page, sign-up and checkout, and server error rates.

    Step 7: Control Costs Before Launch

    Usage-based hosting and AI APIs are cheap at rest and can spike under load or abuse. Set spending limits on your host and on every AI provider, and add rate limits to endpoints that call paid APIs.

    Require sign-in before users can trigger expensive actions, and cache results where you can.

    Check your bill a day after launch and again a week later, and adjust limits as you learn your real usage.

    What is the most common surprise bill?

    Unprotected AI endpoints called by bots or scripts. Rate limits and authentication prevent most of it.

    How do I estimate hosting costs?

    Use the host’s pricing calculator with realistic traffic, then double it for launch week.

    Set Up Separate Environments

    Keep at least two environments: production for real users and a preview or staging environment for testing changes. Most hosts create preview deployments for each branch automatically.

    Give each environment its own database and API keys. Test changes from your AI assistant in preview before merging them to production.

    This one habit prevents most launch-week disasters, such as an AI edit that deletes data or breaks sign-up.

    Do I need staging for a tiny app?

    Preview deploys are enough for most small apps.

    How do I copy data to staging?

    Use anonymized or test data rather than real customer records.

    Handle Email, Payments and Authentication

    Transactional email needs a proper provider such as Resend, Postmark or SendGrid, with your domain verified so messages do not land in spam.

    Payments should go through Stripe or a similar provider in live mode, with webhooks pointed at your production URL and tested end to end.

    Use a proven authentication service, such as Supabase Auth, Clerk or Firebase Authentication, rather than custom login code an AI wrote from scratch.

    Why do my emails go to spam?

    Usually missing SPF, DKIM or DMARC records on your domain.

    Should I test payments in production?

    Run one real low-value transaction, then refund it, to confirm the whole flow.

    Step 8: Prepare for Launch Day

    Before you announce, load test the key pages, cache your landing page and make sure the database can handle a burst of sign-ups. Our guide on keeping your launch site up on Product Hunt day covers this in detail.

    Write a short rollback plan: how to redeploy the previous version and who will do it.

    Then focus on getting users. See how to market a vibe-coded app and how to launch on Product Hunt.

    Should I launch on a Friday?

    Avoid it. Launch early in the week when you can respond quickly to issues.

    Do I need a staging environment?

    It helps. Many hosts give preview deploys for every branch, which is enough for small teams.

    Keep Shipping After Launch

    Vibe coding makes changes fast, so build a simple routine: work on a branch, check the preview, then merge to deploy. Keep commits small so problems are easy to trace.

    Ask your AI assistant to write basic tests for critical flows such as sign-up and payment, and run them before each deploy.

    Review your hosting, database and AI bills monthly, and upgrade plans only when real usage requires it.

    How often should I deploy?

    As often as you like, as long as each change is small and tested.

    When should I hire a developer?

    When you handle sensitive data, revenue depends on the app, or changes start breaking things often.

    How We Researched This Guide

    We took sample apps from several AI builders through each step on Vercel, Netlify, Fly.io, Railway and Render, and reviewed security guidance from Supabase, Firebase and the hosts. Read how we research and rank for our method.

    Read more about how we research and rank.

    Frequently Asked Questions

    Can I deploy a vibe-coded app without coding knowledge?

    Yes, with platforms like Vercel, Netlify, Railway and Render. Get a developer to review security if you store personal or payment data.

    Where should I host a vibe-coded app?

    Front ends fit Vercel, Netlify or Cloudflare. Apps with a server and database fit Fly.io, Railway or Render.

    Is it safe to launch code written by AI?

    It can be, after you check secrets, authentication and database access rules, and add monitoring.

    How much does hosting a vibe-coded app cost?

    Small apps often run for a few dollars to a few tens of dollars a month. AI API usage is usually the bigger cost.

    What is the biggest mistake when deploying vibe-coded apps?

    Leaving API keys in browser code and leaving database access open. Fix both before launch.

    Do I need GitHub?

    It is strongly recommended. It gives you history, rollback and easy deploys to every major host.

    Conclusion

    Deploying a vibe-coded app well is mostly about discipline: code in GitHub, the right host for the app’s shape, secrets in environment variables, a real database with backups, and monitoring and spending limits in place.

    Do those steps once and every future change ships safely with a push.

    Then turn your attention to growth with our list of marketing tools for vibe coders.

      Once a week you will get the latest articles delivered right to your inbox