Free tier: No free tier — $1 trial credit, no card, for 7 days or until spent. Paid from: ≈$2.19/mo. Runs: static sites, server-side rendering, always-on servers. Best for: Developers comfortable with Docker and a CLI; small always-on servers.
Free tier
No free tier — $1 trial credit, no card, for 7 days or until spent
- Trial (no card): up to 10 Machines (stopped ones count), up to shared-cpu-2x with 4 GB, 20 GB volumes in total; trial Machines stop after running 5 minutes
- When the credit runs out or expires, Machines stay stopped until you add a card; after that, monthly bills under $5 are waived
- Billed per second while a machine runs
- Smallest preset shared-cpu-1x 256 MB: $2.19/month (Ashburn; other regions cost more)
Paid plans
≈$2.19/mo: Pay-as-you-go: shared-cpu-1x · 256 MB is $2.19/month in Ashburn (iad); region multipliers apply. Managed Postgres from $38/month
What are the catches?
- Needs the flyctl CLI and usually a Dockerfile — not the lowest-friction choice for non-developers.
Deploying to Fly.io
- Connect
- Install flyctl, run
fly launchin the project folder (it detects a Dockerfile or framework), thenfly deployfor later updates. - Build
- A Vite SPA is typically built in a Docker stage and served by nginx on port 80 (set internal_port in fly.toml).
- Env vars
-
fly secrets set NAME=valuefor runtime secrets; build-timeVITE_*values must be passed as build args - Domain
-
fly certs add yourdomain.com, then create the A/AAAA (or CNAME) records flyctl prints.
Single-page app fallback
location / {
try_files $uri $uri/ /index.html;
} Official docs (opens in a new tab)
Guides for Fly.io
Common errors on Fly.io
Related guides
Common questions
Does Fly.io have a free tier?
No free tier — $1 trial credit, no card, for 7 days or until spent.
How much does Fly.io cost?
Paid plans start at ≈$2.19/mo. Pay-as-you-go: shared-cpu-1x · 256 MB is $2.19/month in Ashburn (iad); region multipliers apply. Managed Postgres from $38/month. Checked 20 Nov 2026 on Fly.io's pricing page.
Can Fly.io run a backend server?
Yes. Fly.io runs static sites, server-side rendering, always-on servers, so websockets, bots and background jobs work.