Easiest: Railway. Cheapest: Cloudflare Pages. Database: Neon. Login: Clerk. Copy your environment variables into the host before the first build, and add the new URL to your auth provider.
Railway
Deploys from GitHub or Dockerfile, handles servers and databases in one place.
Cloudflare Pages
Free for static sites and light serverless functions.
What Claude Code gives you
Anything you asked for.
Built-in hosting
No built-in hosting.
- Free: Not applicable.
- Custom domain: Set up at your host. Custom domain cost & setup for every builder
First: which kind of project do you have?
| Type | How to tell | What the host needs |
|---|---|---|
| Static / SPA | Build outputs dist/, build/ or out/. | Cloudflare Pages, Netlify, Vercel, DigitalOcean static. |
| Server app / API / bot | Has a start command that keeps running, often a Dockerfile. | Railway, Render, Fly.io, DigitalOcean App Platform. |
Get your code out
- Ask it to initialise git and create a GitHub repo, or run git init / git push yourself.
Build settings
- Build command
-
From package.json / Dockerfile - Output
- Depends on framework
- Node
- Match local
Environment variables to copy
-
Everything in .env — add each value in the host dashboard.
Gotchas
- Agents sometimes hard-code keys during prototyping. Search the code for secrets before pushing.
Step-by-step guides for Claude Code
- Vercel Easiest for Next.js / Vite frontends.
- Cloudflare Pages Cheapest for static sites — free with unlimited bandwidth.
- Railway Easiest for servers, bots and APIs; can add Postgres in the same project.
- Render Free tier for experiments; paid instances from $7/month for always-on.
- Fly.io For Dockerised apps that need to run close to users. No free tier.
- DigitalOcean App Platform Free static apps, containers from $5/month.
Database & login
Data: Neon (opens in a new tab): Free: 100 projects, 100 CU-hours per project/month, 1 GB storage per project (20 GB total). Compare databases · Which database to pick
Auth: Clerk (opens in a new tab): Hobby: free — 50,000 monthly retained users per app, up to 3 social connections.
Common errors with Claude Code apps
- Supabase warns “RLS disabled” — your table is public
- “new row violates row-level security policy” (42501)
- Supabase paused my project: how to restore it and stop it happening
- Stripe webhook fails on a Supabase Edge Function: 401 or “No signatures found”
- SQLite database resets after every deploy: why production data disappears
- Page works, but refreshing it gives a 404
- Blank page or “supabaseUrl is required” after moving off the builder
- Works locally, but "Failed to fetch" after deploying: your app still calls localhost
- Google login sends you back to localhost (or “redirect_uri_mismatch”)
- Deploy succeeds but shows a blank page or “Page not found”
- Firebase: “This domain is not authorized for OAuth operations”
- Clerk: “Development keys” warning or sign-in broken in production
Related guides
- Custom domain on Lovable, Bolt, Replit and v0: what it costs and how to set it up
- Supabase vs Neon vs Firebase vs Turso: which database for an AI-built app?
- Supabase “permission denied for table” (42501) on a new table: the October 30 grants change, explained and fixed
- Vercel Hobby Data Cache moves to Runtime Cache on 29 November 2026: what changes and what to do
- Supabase CLI v3 (November 2026): why db push no longer reaches your project, and how to fix HostedMutationConsentRequiredError
- Cloudflare spending limits (November 2026): how to put a hard cap on your Workers bill, and what stops when you hit it
- Vercel Security Review (November 2026): what it scans, what it costs per push, and how to keep it from reviewing every repo
- Vercel build minutes (November 2026): Pro teams now pay for Standard builds, what a build costs, and how to build less
- vercel.toml on Vercel (November 2026): how to convert vercel.json, with SPA rewrites, branches and the one-file rule
- Vercel 413 FUNCTION_PAYLOAD_TOO_LARGE: the 4.5 MB request body limit, the new 20 MiB opt-in (Nov 2026), and when to upload straight to storage
- Cloudflare Email Sending on the Workers Free plan (November 2026): what you can send for free, what needs the $5 plan, and how to set it up
- Cloudflare Search for Agents (November 2026): what the toggle does, what it costs from 1 December, and how to set it up safely
- Claude Sonnet 4.5 retires on 30 November 2026: find the calls in your vibe-coded app and switch without new 400 errors
Common questions
What is the easiest way to host a Claude Code app?
Railway. Deploys from GitHub or Dockerfile, handles servers and databases in one place.
What is the cheapest way to host a Claude Code app?
Cloudflare Pages. Free for static sites and light serverless functions.
Does Claude Code have built-in hosting?
No built-in hosting. Not applicable.
Can I use a custom domain with Claude Code?
Set up at your host.
What build command and output folder does a Claude Code app use?
Build command From package.json / Dockerfile; output: Depends on framework.