Skip to main content
Framework-driven deploy guide · 18 stacks across 7 ecosystems

Deploy Vibe Coded Apps

Pick your app's language and framework. Every section below—the deployment steps, pre-flight checklist, hosting picks and cost estimate—rewrites itself for your stack.

1. Language / Runtime Switching stack updates the whole page
2. Framework JS / TypeScript frameworks
Deploy model Serverless / Node.js SSR
Recommended hosts Vercel, Cloudflare Workers (OpenNext), Railway or VPS
Typical launch cost $0–20/mo

Deployment path Next.js

Four steps, exact commands and production gotchas for shipping a Next.js app.

Most vibe coded full-stack apps (from v0, Cursor, Claude Code or Codex) land on Next.js. It deploys cleanly to serverless platforms, or as a standalone Node server on a container host when you need WebSockets, long AI calls or flat-rate billing.

Best-fit hosting Vercel, Cloudflare Workers (OpenNext), Railway or VPS Artifact: .next build or standalone Node server
  1. Verify the production build & lock Node

    Dev mode hides TypeScript errors, missing "use client" directives and dynamic-route issues. Build and boot in production mode locally and pin your Node version.

    node -v > .nvmrc
    npm ci
    npm run build && npm start
  2. Pick serverless or standalone container output

    Vercel and Netlify auto-detect Next.js. For Railway, Fly.io or a VPS with Docker, enable output: "standalone" in next.config.ts to shrink the image dramatically.

    // next.config.ts
    export default { output: 'standalone' };
    
    # Deploy to Vercel
    npx vercel --prod
  3. Set env vars and run database migrations

    Add every secret from .env.example in the host dashboard (keep only safe public values in NEXT_PUBLIC_*) and run migrations as a release step.

    npx vercel env add DATABASE_URL production
    npx prisma migrate deploy   # or: npx drizzle-kit migrate
  4. Connect your domain & check redirects

    Point DNS at your host, verify HTTPS, and update OAuth callback URLs and Stripe webhooks from localhost:3000 or *.vercel.app to your real domain.

    dig +short yourapp.com
    curl -sI https://www.yourapp.com | head -n 5

⚠️ Next.js production gotchas

  • Vercel Hobby is non-commercial: once you charge users or run a business site, move to Vercel Pro ($20/user/mo), Cloudflare OpenNext or a flat-rate VPS.
  • NEXT_PUBLIC_ leaks: any variable prefixed with NEXT_PUBLIC_ is inlined into client JS. Keep LLM, Stripe and DB keys strictly server-side.
  • Serverless timeouts: slow AI completions, scraping or PDF generation hit function timeout limits. Stream responses or offload to a background job.
  • Image Optimization billing: uncached <Image> transforms and heavy ISR revalidation can cost more than compute on usage-based plans.

Pre-flight checklist Next.js

Only the 10 checks that actually apply to Next.js. Expand any item to see why it breaks and copy an AI fix prompt.

0/10 checks passed
Prompts for:

Secrets, Config & Build

0/3

Database, State & Files

0/2

URLs, Routing & CORS

0/2

Security, Limits & Ops

0/3

Hosting options Next.js

Ranked for Next.js (Serverless / Node.js SSR), with stack-specific caveats.

Platform Free tier Paid from Billing model For Next.js & watch-outs
Vercel
Best fit
Hobby plan (non-commercial use only) Pro $20/user/mo + usage Usage-based Zero-config reference host for Next.js. Budget $20/user/mo once commercial and enable Spend Management.
Cloudflare Pages & Workers
Best fit
Unmetered static bandwidth + 100k Worker req/day Workers Paid $5/mo Requests + CPU time Runs via OpenNext Cloudflare adapter; great flat cost, but check Node API compatibility.
Railway
Best fit
One-time trial credit Hobby $5/mo incl. $5 usage Usage (CPU + RAM) Idle containers still bill for allocated RAM, so memory-heavy frameworks cost more than Rust/Go.
VPS + Coolify / Dokploy (Hetzner, DO)
Best fit
n/a (open-source PaaS on your box) ~$5–12/mo flat Flat rate Run output: "standalone" with Coolify/Dokploy to escape usage-based serverless bills at scale.
Netlify
Good fit
Free plan with monthly bandwidth/build caps Pro ~$19/member/mo Credits / usage Free sites pause if monthly limits run out; frequent AI commits burn build minutes.
Fly.io
Good fit
Pay as you go ~$2–6/mo per small machine Usage per machine Extra regions and detached volumes keep billing; auto-stop machines add brief wake latency.
Supabase
Good fit
2 free projects (pause after ~7 days idle) Pro $25/mo per org Flat + usage Managed Postgres + Auth + Storage; use Supavisor transaction pooling in serverless routes.
Neon Postgres
Good fit
Free serverless Postgres (0.5 GB storage) Launch ~$19/mo + usage Usage (compute + storage) Free computes scale to zero after idle (brief cold wake); check connection pooler URL.

Approximate list prices in USD as of December 2026. Plans change often—confirm on each vendor's pricing page before committing.

Hosting cost estimator Next.js

Estimated monthly spend for a Full-stack Next.js (SSR) at different traffic tiers.

Monthly traffic
Recommended

Free / starter tiers

Vercel Hobby (non-commercial), Cloudflare Workers

$0 /mo

Recommended

Managed PaaS

Vercel Pro ($20/user) + Neon / Supabase

$20–$45 /mo

Recommended

Flat-rate VPS

Hetzner / DO VPS + Coolify (next start)

$5–$10 /mo

Best strategy

Free tier for side projects; Pro once commercial

Next.js deploys zero-config on Vercel. Free Hobby works for personal projects, or budget $20/mo for Pro (or a $5 VPS with Coolify) the moment you charge users.

🚩 Billing traps at this size
  • Vercel Hobby is strictly non-commercial.
  • Serverless function timeouts (10–60 s) break long AI calls unless you stream or use a background queue.

Rough monthly estimates for one app, excluding your domain (~$10–15/year). "Outgrown" means free caps, sleep rules or non-commercial limits won't hold up at that traffic.

We use cookies for ads and analytics.