Deploy Your Vibe-Coded App: From Prompt to Production

A friend showed me a habit tracker she built in one evening. She described the idea to an AI coding agent, answered a few questions, and watched the app take shape: a clean dashboard, streaks, a weekly chart. It ran perfectly on her laptop. She sent me the link the agent had given her, and I opened it on my phone. Half the page loaded. The chart was empty, the login button did nothing, and a console error pointed at localhost:3000. The app worked. The deploy did not.

That gap catches almost every vibe coder at some point. Building the app takes one evening. Shipping it takes a second skill set nobody mentioned during the build: hosting, environment variables, databases, and the small config details that break only after the code leaves your machine. This guide covers how to identify what you built, pick a host that fits it, avoid the four breaks that kill most first deploys, and walk an app from a local folder to a live URL.

What Deployment Means for a Vibe-Coded App

Deployment means moving your app from your laptop to a computer that stays on, stays reachable, and serves your app to anyone with the link. Your laptop sleeps, changes networks, and runs a development server. A host does none of those things. It builds your code, serves the result, and restarts the pieces that crash.

AI coding agents make this step feel optional. They hand you a preview link, and the preview works, so the app feels done. A preview link is a demo, not a deployment. It often runs on the agent platform with generous limits, no custom domain, and no guarantee it stays up. The moment you want a link you can share, a domain you own, or an app that survives the weekend, you need a real host.

First, Identify What You Built

Open your project folder and look for the shape of the app before you look at hosting pages. AI agents generate many kinds of projects, and each kind needs a different home.

A static app has an index.html file or a React, Vue, or Svelte project with no backend code. Everything runs in the browser. These apps deploy anywhere, cost nothing on a free tier, and go live in minutes.

A full-stack app has API routes, a server file such as server.js or main.py, or a framework like Next.js with server actions. It needs a host that runs server code around the clock. Static hosts cannot run it, and trying to force it there produces the most confusing errors in this guide.

A database-backed app stores data somewhere. If the agent wrote a SQLite file into the project, that file lives on disk. Serverless hosts wipe their disk between requests, so the data vanishes. Apps with a database need a host with persistent storage or a hosted database such as Supabase or Neon.

Check three files to settle the question: package.json or requirements.txt shows the runtime, the folder layout shows whether a server exists, and any file ending in .db or .sqlite warns you about local storage.

Analytics dashboard on a laptop screen showing charts and data panels for a deployed web app

The Five Hosts Worth Considering

There are dozens of hosting providers. Most of them add noise. Five cover nearly every vibe-coded app, and the table below shows how they compare on the points that matter to a first deploy.

PlatformBest ForFree TierPaid Starts AtWatch Out For
VercelNext.js and frontend appsYes, Hobby plan$20 per seat per monthPersonal, non-commercial use only on Hobby
Cloudflare PagesStatic sites and edge APIsYes, generous daily limits$5 per month for Workers PaidWorkers free tier allows 100,000 requests per day
NetlifyStatic sites and JamstackYes, 300 credits per month$20 per month for ProSites pause when the 300 credits run out
RailwayFull-stack apps with a databasePartial, small trial credit$5 per month HobbyNo usable free tier for new users
RenderBackends and full-stack appsYes, with limits$7 per monthFree web services sleep after 15 minutes idle

Match the host to the stack you identified. A static app belongs on Vercel, Netlify, or Cloudflare Pages. A full-stack app with a real backend belongs on Railway or Render. An app with SQLite belongs on a platform with persistent disk, which rules out Vercel and Netlify entirely.

Free tier terms changed through 2025 and 2026, and several hosts tightened their free plans. Vercel Hobby gives 100 GB of bandwidth and one million function invocations per month, but it covers personal, non-commercial projects only. If the app takes payments or shows ads, Cloudflare Pages fits better. Netlify gives 300 credits a month, and one production deploy costs 15 credits, so the budget covers about 20 deploys if nothing else uses credits. Render gives 750 hours a month on its free tier, but the service sleeps after 15 minutes without traffic, so the first visitor waits for it to wake. Confirm the current limits on each pricing page before you commit, because these numbers move.

The Four Breaks That Kill Most First Deploys

Most failed deploys trace back to four mistakes. AI agents make each one easy to commit, because the code works fine on localhost where all four are invisible.

Hardcoded localhost URLs come first. The agent writes fetch calls to http://localhost:3000/api or a similar local address, and the browser on your laptop resolves it. On a phone or a friend’s computer, localhost means their machine, not yours. Search the project for “localhost” and replace every match with a relative path such as /api or an environment variable that holds the live API address. This single fix rescues more broken deploys than any other.

Missing environment variables come second. API keys, database URLs, and auth secrets live in a .env file on your laptop, and that file never reaches the host. Git ignores it by design. You must add each variable in the host dashboard under its environment settings, then redeploy. Keep a list of every variable the app reads, and check them off one by one. One missing key produces a blank page with no useful error, so this step rewards patience.

SQLite on serverless comes third. The agent picks SQLite because it needs no setup, and it works on your laptop. On Vercel or Netlify, the file system resets between requests, so rows written by one visitor disappear before the next visitor arrives. The fix is a hosted database. Move the data to Supabase or Neon, update the connection string, and keep the code on the host. The host runs code. The database service holds data. Mixing the two roles breaks the app.

Build errors and CORS misconfiguration come fourth. A build that passes on your machine can fail on the host when a dependency is missing from package.json or the Node version differs. Read the build log line by line instead of guessing. CORS errors appear when the frontend and the API live on different domains and the API refuses requests from the frontend origin. Add the frontend domain to the allowed origins list on the API, and the error clears.

I run a short test of the app before every deploy, and the same test catches security gaps early. Test AI-generated code before you ship with a checklist that covers the cases agents skip. A separate pass on shipping vibe-coded apps without security holes covers exposed keys and open endpoints. Both checks take less time than one failed deploy.

Deploy in Nine Steps: From Local Folder to Live URL

This walkthrough uses a Git-based host, because the same steps work on Vercel, Netlify, Railway, Render, and Cloudflare Pages. Swap the dashboard names and the flow stays identical.

Step one: push the project to a GitHub repository. Create the repo, add the files, and push. Hosts build from Git, so a local-only folder cannot deploy. Keep the .env file out of the repo. Gitignore it and confirm it stays out.

Step two: sign in to the host with GitHub and import the repository. The host lists your repos. Pick the app repo and continue.

Step three: let the host detect the framework. Vercel recognizes Next.js and Vite projects. Railway detects Node.js, Python, and Go. Confirm the build command and the output directory. For a Vite app the build command is npm run build and the output directory is dist. For Next.js the host handles both.

Step four: add environment variables. Open the project settings, find the environment variables section, and add every key from your local .env file. Use the production values, not the local ones. A database URL that points at localhost will fail here.

Step five: deploy. Click the deploy button and watch the build log. The first build takes one to three minutes. A green log means the app is live at a subdomain such as your-app.vercel.app.

Step six: open the live link in a private browser window. Private mode skips cached logins and local state, so you see the app the way a stranger sees it. Click every button. Submit every form. Watch the network tab for failed requests.

Step seven: fix what broke. Most first deploys break on one of the four mistakes above. Fix the code, push to GitHub, and the host rebuilds automatically. Each push creates a new deployment, and the live URL updates when the build passes.

Step eight: connect the database. If the app stores data, create a hosted database, run the migrations, and point the app at the new connection string. Test a write and a read from the live site, not from localhost.

Step nine: add a custom domain. Buy a domain or use one you own, add it in the host settings, and update the DNS records the host shows you. The host issues an SSL certificate automatically, so the site serves over HTTPS with no extra step.

The language you built the app in rarely changes these steps, but it changes the hosting fit. The best programming languages for vibe coding compares the options agents reach for most, and the comparison helps when the next project starts from a blank prompt. If the app is a side project with no backend, the whole nine-step flow takes under ten minutes. A full-stack app with a database takes closer to thirty, and most of that time goes to the database.

After It Is Live: The Checks Nobody Runs

A live URL is the middle of the job, not the end. Five checks separate a demo from an app people can rely on.

Check the app on a phone, not only on a laptop. Half of all web traffic comes from mobile devices, and layouts that look fine on a wide screen break on a narrow one. Tap every control with a thumb. Scroll every page. A button hidden behind a sticky header on mobile is a bug your laptop never shows you.

Check the app after a cold start. Free tiers sleep, and the first visitor after a quiet period waits while the service wakes. Render free services sleep after 15 minutes idle, so a personal project can take 30 to 60 seconds to answer the first request. That delay looks like a broken site to a new visitor.

Check the security basics. Rotate any API key that appeared in a chat log or a screenshot. Confirm the .env file never entered Git. Limit the database user to the permissions the app needs.

What to Do When the Free Tier Runs Out

Free tiers end in three ways: usage limits, feature limits, and commercial-use rules. Each one has a different answer.

Usage limits hit first on apps with steady traffic. Vercel Hobby allows 100 GB of bandwidth and one million function invocations per month, which covers a small side project with room to spare. When traffic passes those numbers, the Pro plan at $20 per seat per month buys higher limits and team features. Compare the price against Railway at $5 per month or Render from $7 per month, because a small backend often costs less on a platform built for servers.

Feature limits hit apps that need something the free tier excludes. Netlify free includes 300 credits a month, and heavy build activity can pause every site on the team until the next cycle. Cloudflare Workers free allows 100,000 requests per day, which suits APIs and small tools, and the Paid plan from $5 a month raises the ceiling to 10 million requests.

Commercial-use rules hit apps that earn money. Vercel Hobby covers personal, non-commercial projects only, so an app with payments, ads, or paid client work needs a paid plan or a different host. Cloudflare Pages has no such restriction on its free tier, which makes it the safer default for anything that might earn revenue later.

Before you pay for anything, read a current comparison. The InstaWP deployment walkthrough compares the same five hosts with prices captured in August 2026, and it covers the SQLite trap in detail. Vibe Coding Resources walks through Vercel, Netlify, and Railway side by side with five-step deploys for each. PromptToProd scores the tools on free tier, pricing, and fit for vibe-coded apps. VibeCodeMeta covers the full flow from Cursor export to environment variables. Masai School tracks what is still free after the 2025 and 2026 free-tier changes. Cross-check any price against the official pricing page, because free tiers move and roundups age fast.

Conclusion

Deployment is the step that turns a prompt into a product. Identify the stack first, because the stack picks the host. Static apps belong on Vercel, Netlify, or Cloudflare Pages. Full-stack apps belong on Railway or Render. Anything with SQLite needs persistent storage or a hosted database. Fix the four common breaks, localhost URLs, missing environment variables, SQLite on serverless, and build or CORS errors, before you blame the host. Then push to Git, import the repo, add the variables, and open the live link in a private window.

My friend’s habit tracker went live the same evening we fixed three things: a localhost API URL, two missing environment variables, and a SQLite file that needed a hosted database. The app had been ready for days. The deploy was the missing piece. If you are still weighing whether to build this way at all, vibe coding versus traditional coding lays out when each approach wins. Yours is probably closer than it looks. Ship it, check the logs tomorrow, and keep the link.

Irfan is a Creative Tech Strategist and the founder of Grafisify. He spends his days testing the latest AI design tools and breaking down complex tech into actionable guides for creators. When he’s not writing, he’s experimenting with generative art or optimizing digital workflows.

Leave a Reply

Your email address will not be published. Required fields are marked *

You might also like
Vibe Coding and Accessibility: Why AI Ships Broken UI

Vibe Coding and Accessibility: Why AI Ships Broken UI

MCP Servers for Vibe Coding: What to Connect First

MCP Servers for Vibe Coding: What to Connect First

Laravel’s Read-Only GET That Wipes a Table

Laravel’s Read-Only GET That Wipes a Table

AI Coding Tools: What They Cost and If They Pay Off

AI Coding Tools: What They Cost and If They Pay Off

Best Programming Languages for Vibe Coding

Best Programming Languages for Vibe Coding

Do You Still Need to Learn to Code?

Do You Still Need to Learn to Code?