A Fly.io Alternative For Static Front Ends

Need a Fly.io alternative? Keep the API on a machine and stop paying for an nginx container that serves the same files to everyone. Prices as of Nov 2026.
The OxyPages Team · · 8 min read
You've got a side project on Fly.io that pays for itself, just about. A Go API runs in one machine, a worker in another, and a third machine runs nginx to serve the marketing site and the built dashboard. Then the bill crosses $5 and you start reading about a Fly.io alternative, wondering whether the whole thing should move.
Before you move anything, look at that third machine. It's a full virtual machine whose only job is to hand the same HTML, CSS and JavaScript to every visitor.
That's the part most comparisons skip. They line up platforms that run containers, as if every container you run needs to stay a container. A marketing site and a built React dashboard are folders of files. They don't need a VM in 18 regions. Your API might.
So this post sorts first and shops second. I'll say what Fly does well and who should stay, cover five platforms that can run the backend, then two static hosts for the front end. Every price is from the vendor's own page, as of November 2026. For static hosting alone, every static host compared side by side goes deeper.
TL;DR: Fly.io has no free tier. New accounts get $1 of credit for 7 days, and with a card on file, a personal organization's bill under $5 is waived, but a $7 bill is charged in full. The smallest always-on machine is $2.19 a month in Fly's US East regions. If your API, workers or database run well on Fly, keep them there or move them to Railway, Render, Northflank, Koyeb or DigitalOcean App Platform. A static marketing site or dashboard served by nginx doesn't need a machine at all, and a static host serves it for free or a flat few dollars a month. A static host can't run your API or database on any plan.
Why Do People Look For A Fly.io Alternative?
Most people looking for a Fly.io alternative are reacting to the end of the free allowance, the hands-on workflow, or a bill that's bigger than the project.
The free allowance went first. Fly stopped selling its Hobby, Launch and Scale plans on 7 October 2024. The old free allowance of three small VMs, 3 GB of volumes and 100 GB of North America and Europe egress only applies to organizations that were on those plans before that date.
New accounts now get a trial: $1 of credit, no card, lasting 7 days. Trial machines stop automatically after running for 5 minutes. After that, Fly's own docs put it plainly: "Fly.io doesn't have a free tier, but if your monthly bill comes to less than $5, we waive it." That waiver needs a card on file and only covers your personal organization.
Then there's the workflow. You deploy with the flyctl command line tool and a Dockerfile. That's comfortable for some developers and a wall for others.
Last, the costs that sit outside the machine price. Managed Postgres starts at $38 a month. Egress is $0.02 per GB in North America and Europe, $0.04 in Asia Pacific, Oceania and South America, and $0.12 in Africa and India.
What Fly.io Does Well, And Who Should Stay
Fly is very good at running small servers close to users. Machines boot fast, Anycast routes each visitor to the nearest healthy instance, and idle machines can stop and start on their own. There's private networking, zero-downtime deploys, SOC 2 Type II, and no monthly platform fee.
If your app needs low latency in several regions, or your whole bill sits under the $5 waiver, stay. No other platform on this list is cheaper per always-on machine.
Does A Static Site Need Its Own Machine?

No. A static site only needs a server that hands out files, and a static host does that without you running one. Fly's own static site guide packages your files with a web server inside a Dockerfile, which works, but it means a machine, an image and a deploy for every copy change.
Here's how to tell what's static in your Fly organization:
- An API (Go, Node, Python, Elixir). It reads the database and checks logins. Keep it on a machine.
- A database or volume. Managed Postgres, or SQLite on a volume. Keep it next to the API.
- Workers and scheduled jobs. Background tasks. They need a machine.
- A Next.js, Remix or SvelteKit app with server rendering. It builds pages per request, so it needs a server.
- An nginx or Caddy machine serving a
distfolder. That's a static site wearing a VM. It can move. - A built Vite or React dashboard. It runs in the visitor's browser and calls your API. It can move.
web.dev's guide to rendering on the web explains the difference between pages built per request and pages built once.
Five Platforms That Can Run Your Backend
These run long-lived servers the way Fly does. All prices are monthly, as of November 2026.
Railway
Railway suits developers who want a visual dashboard instead of a CLI. Hobby is a $5 minimum that includes $5 of usage, with RAM at $10 per GB a month and builds free. After a 30-day trial, the Free plan gives $1 of credit a month and no custom domain.
The catch: usage above $5 is billed on top, and egress is $0.05 per GB, more than Fly's North America and Europe rate.
Render
Render suits someone who wants the most familiar Git-push experience. The free Hobby workspace includes one 512 MB web service that sleeps after 15 minutes without traffic. An always-on web service is $7 a month, and paid Postgres starts at $6, far below Fly's $38.
The catch: Hobby includes only 5 GB of bandwidth, then $0.15 per GB.
Northflank
Northflank suits a project that wants a free tier with no sleeping. The Sandbox plan needs no card and covers two services, two jobs and one database, up to about $20 a month of resources. Paid plans start at $12 a month.
The catch: egress is $0.06 per GB, and the dashboard assumes you know containers.
Koyeb
Koyeb suits teams who want autoscaling and scale-to-zero with GPUs available. Mistral AI announced it's acquiring Koyeb in February 2026, and new sign-ups now start on Pro at $29 a month plus compute, with $10 of compute included.
The catch: the free Starter plan is being removed for new users, and a card is verified with a $29 hold at sign-up.
DigitalOcean App Platform
DigitalOcean suits people who want fixed plan prices from a large provider. A container with one shared vCPU and 512 MiB is $5 a month with 50 GiB of transfer, and a dev Postgres database is $7.
The catch: free static apps get 1 GiB of transfer each, then $0.02 per GiB, and a payment method is used to verify your identity.
Where The Static Front End Can Go
A built front end can live on a static host for free or a flat price and keep calling your API on Fly. You set the API's address as a build-time environment variable and allow the new domain in the API's CORS settings. Deploying a Vite app walks through the build side.
Cloudflare Pages has the strongest free tier for this: unlimited static requests and bandwidth, custom domains included, and no commercial ban in its terms.
OxyPages is the one we make. Free covers one site on a myoxypages.com subdomain with HTTPS and 5,000 page views a month, for personal, non-commercial use and with no custom domain. A product's marketing site needs Lite, at $5 a month or $48 a year, which adds custom domains and commercial use with no bandwidth bills. It builds React, Vue, Svelte, Vite and Astro output from GitHub, or you can deploy a folder with npx oxypages.
The limit, plainly: it can't run your Go API, your worker, a server-rendered app or your database. No static host can.
Fly.io Compared Side By Side
Every figure is from the vendor's pricing page, as of November 2026. Prices are monthly.
| Platform | Runs your API? | Free tier | Cheapest always-on | Egress | The catch |
|---|---|---|---|---|---|
| Fly.io | Yes | None ($1 for 7 days; bills under $5 waived with a card) | $2.19 machine | $0.02 to $0.12/GB by region | Postgres from $38 |
| Railway | Yes | $1 credit a month after a $5 trial | $5 minimum, usage on top | $0.05/GB | Usage billed on top |
| Render | Yes | 1 web service that sleeps after 15 min | $7 web service | 5 GB, then $0.15/GB | Small bandwidth allowance |
| Northflank | Yes | 2 services + 1 database, always on | $12 plan | $0.06/GB | More technical |
| Koyeb | Yes | None for new sign-ups | $29 Pro plus compute | $0.02 to $0.04/GB after an allowance | $29 card hold |
| DigitalOcean App Platform | Yes | 3 static apps, 1 GiB each | $5 container | $0.02/GiB over allowance | Card used to verify identity |
| Cloudflare Pages | Front end only | Unlimited static bandwidth | Free | Unlimited for static | Server code means Workers |
| OxyPages | Front end only | 1 non-commercial site, no custom domain | $5 Lite | No bandwidth bills | No servers or databases |
Trimming A Small Fly.io Bill, Step By Step

Here's how the waiver changes the maths. Say your personal organization runs three always-on 256 MB machines in Ashburn: the Go API, a worker, and nginx serving the front end. That's 3 x $2.19 = $6.57 a month before egress. It's over $5, so Fly charges all of it.
Take the nginx machine away and you're at $4.38 plus a little egress. If that stays under $5, the waiver covers the lot.
- Find the static machine. Run
fly apps listand look for the app whose Dockerfile copies adistfolder into nginx or Caddy. - Build the front end locally. Run the build and check the output folder has an
index.html. - Set the API address at build time. Point the dashboard's API variable at your Fly API's hostname, then rebuild.
- Deploy the folder to a static host. Turn on SPA mode for the dashboard. Why single-page apps 404 on refresh explains the setting.
- Allow the new origin. Add the front end's domain to the API's CORS allow list.
- Move the DNS, then destroy the machine. Point www at the static host, wait a few days, then run
fly apps destroyon the nginx app.
If your three machines were already under $5, this saves nothing on Fly. Do it only if the static machine is what pushes you over, or if you'd rather not redeploy a VM to fix a typo.
What To Do Next
Run fly apps list and label each app "code" or "files". If everything is code and the bill is fine, stay. If the platform is the problem, Railway is the easiest dashboard, Render has the cheapest Postgres, and Northflank has the most generous free tier.
If an app only serves files, it doesn't need to be a machine. Put the static front end on a flat-priced host and keep Fly for the code that needs it.
FAQ
Does Fly.io Have A Free Tier?
No. New accounts get $1 of credit for 7 days, and trial machines stop after 5 minutes. With a card on file, a personal organization's bill under $5 is waived, but it isn't a credit: a $7 bill is charged in full.
Is Fly.io Cheaper Than Railway?
Per always-on machine, usually yes. Fly's smallest machine is $2.19 a month in its US East regions with no platform fee, while Railway's Hobby plan has a $5 monthly minimum. For a database, though, Railway bills Postgres as ordinary usage, while Fly's managed Postgres starts at $38.
Can I Host A Static Site On Fly.io?
Yes, by packaging the files with a web server in a Dockerfile and running it as a machine. It works, but you pay for the machine and its egress. A static host serves the same files without a machine.
Can A Static Host Replace Fly.io Completely?
Only if your project has no server code. A static host can't run an API, a worker, a server-rendered app or a database, so for most Fly projects it's a Fly.io alternative for the front end only.