Where to host a vibe-coded app: static, serverless or VPS
Static host, serverless platform, app platform or VPS? How to choose hosting for an app built with Lovable, Bolt, v0 or Cursor, by what your app does.
Tommy Pham
Short answer: match the host to what your app actually runs. A frontend that talks to Supabase or Firebase is a static site: Cloudflare, Netlify, Vercel or Firebase Hosting serve it well, often free. Next.js with server code fits serverless (Vercel, Netlify, Cloudflare Workers). A long-running Node or Python server, websockets or background workers need an app platform (Railway, Render) or a VPS (Hostinger, Contabo, DigitalOcean). The most common mistake is putting a full-stack app on a static host and wondering why the backend doesn’t work.
This is the hub for my hosting guides. Each section links to a deeper comparison.
What kind of app do you have?
| Your app | What it needs | Good fits |
|---|---|---|
| React/Vite frontend + Supabase, Firebase or a builder backend (typical Lovable, Bolt output) | Static hosting | Cloudflare, Netlify, Vercel, Firebase Hosting |
| Astro or Next.js marketing site, blog | Static or light serverless | Same as above |
| Next.js with API routes, server actions, SSR | Serverless functions | Vercel, Netlify, Cloudflare Workers (via adapter) |
| Express/Fastify server, websockets, long jobs | An always-on process | Railway, Render, Fly.io, a VPS |
| Self-hosted tools (n8n, Postgres, an AI model) | A server you control | VPS |
| Replit or Base44 app with built-in backend | Their platform, or a migration | Replit Deployments, Base44 hosting |
Not sure what yours is? Look at package.json. If the build script outputs a dist or build folder of HTML and JS, it’s static. If there’s a server.js, an Express import, or next start, it needs a running server.
Static and serverless hosts
These four cover most AI-built frontends. I’ve deployed projects on all of them: this site runs on Firebase Hosting, and I’ve shipped experiments on Vercel and Netlify and production apps on Cloudflare.
- Cloudflare: static asset requests are free and unlimited, and Workers handle the dynamic parts. Strong free tier.
- Vercel: the smoothest Next.js experience, but the free Hobby plan is for non-commercial use only.
- Netlify: good all-rounder with forms and functions. Moved to credit-based pricing in 2025.
- Firebase Hosting: simple, fast CDN, pairs naturally with Firebase Auth and Firestore.
→ Full comparison: Vercel vs Netlify vs Cloudflare vs Firebase Hosting
When do you need a VPS?
When you want an always-on server you control: self-hosting n8n, a Postgres database, a websocket server, background workers, or several small apps on one machine for a fixed monthly price. The trade-off: you handle updates, security, backups and uptime yourself.
I run VPSs on Hostinger and Contabo. → Hostinger vs Contabo for side projects
Where does the database go?
Your host and your database are separate decisions. Most AI-built apps use Supabase (Postgres) or Firebase (Firestore), both managed for you. → Supabase vs Neon vs D1 vs Firestore
What breaks when you move off the builder’s hosting?
From what I’ve seen, the same handful of things:
- Missing environment variables. The builder had them, and your new host doesn’t. Copy every one, minus any secrets with a public prefix (why).
- Hardcoded URLs.
localhostor the builder’s preview domain in OAuth redirects, CORS settings and API calls. - Client-side routing 404s. Refreshing
/dashboardon a static host returns 404 unless you add a rewrite toindex.html. - Auth redirect URLs not updated in Supabase or Firebase for the new domain.
- Long tasks timing out on serverless. Move them to background jobs.
→ Step by step: moving a Lovable or Bolt app off the builder
A real example
StayFlow, a property management tool I built, runs on Cloudflare: a React frontend, a Hono API on Workers, D1 as the database, and a cron for calendar syncs. One platform, low cost, no server to maintain. → How I built it
FAQ
What’s the cheapest way to host a Lovable app?
The frontend can be hosted free on Cloudflare, Netlify or Firebase Hosting, with Supabase’s free plan for the backend. Check each free plan’s usage limits and terms (Vercel Hobby excludes commercial use).
Do I need a VPS for a small SaaS?
Usually not. Managed hosting plus a managed database is less work. A VPS makes sense when you need an always-on process or want to self-host tools.
Can I host everything on Supabase?
Supabase hosts the database, auth, storage and edge functions, but not your frontend. Pair it with a static host.
Want help choosing or migrating hosting for your app? I do deployments and migrations. See my work or get in touch below.
Sources
- Vercel docs: Fair use guidelines (Hobby is non-commercial, checked November 2026)
- Cloudflare docs: Workers static assets billing
- Northflank: Where to deploy AI-built apps