Softwr

Web Development · head to head

Cloudflare Pages vs Fly.io

Cloudflare Pages logo

Cloudflare Pages

Web Development

Git-connected hosting for static sites and full-stack frontends on Cloudflare's network

From
Free
Free plan
Yes
Fly.io logo

Fly.io

Cloud

Deploy web applications globally

From
$29/month
Free plan
No

The short version

  • Cloudflare Pages is free; Fly.io starts at $29/mo.
  • Only Cloudflare Pages lists git-connected builds and deploys; only Fly.io lists global deployment.
  • Where Cloudflare Pages falls short: cloudflare recommends Workers for new projects, so Pages is in maintenance mode.
  • Where Fly.io falls short: stopped machines still bill at $0.15 per GB of root filesystem a month, so a paused service is not a free one.

How do Cloudflare Pages and Fly.io differ?

Cloudflare Pages and Fly.io differ on starting price (Free against $29/month), pricing model (Freemium against Usage-based) and free tier (Yes against No). Only the attributes on which Cloudflare Pages and Fly.io actually diverge.

Attributes where Cloudflare Pages and Fly.io differ
AttributeCloudflare PagesFly.io
Starting priceFree$29/month
Pricing modelFreemiumUsage-based
Free tierYesNo
PlatformsWebWeb, API, Self-hosted
CategoryWeb DevelopmentCloud

Not yet recorded: founded for Cloudflare Pages.

Which features does each one have?

They share no listed features; 8 appear only for Cloudflare Pages and 20 only for Fly.io. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Cloudflare Pages

  • Git-connected builds and deploys
  • Direct Upload of prebuilt assets
  • Pages Functions for server-side code
  • Preview deployments
  • Instant rollbacks
  • Custom domains
  • Unlimited sites, seats, requests and bandwidth
  • Framework guides for Next.js and others

Only in Fly.io

  • Global deployment
  • Docker support
  • Postgres databases
  • Redis support
  • Auto-scaling
  • Health checks
  • Backups
  • Monitoring

What is each one used for?

Cloudflare Pages is most often brought in for hosting static sites with unlimited bandwidth; Fly.io for deploying containerised applications close to users across regions. The jobs each tool is most often brought in to do.

Cloudflare Pages

  • Hosting static sites with unlimited bandwidthnot Fly.io
  • Deploying frontend frameworks from GitHubnot Fly.io
  • Sharing preview links with designersnot Fly.io
  • Adding light server-side logic with Functionsnot Fly.io
  • Running documentation or marketing sites cheaplynot Fly.io

Fly.io

  • Deploying containerised applications close to users across regionsnot Cloudflare Pages
  • Running full stack apps and databases on managed machinesnot Cloudflare Pages

Where do Cloudflare Pages and Fly.io fall short?

Cloudflare Pages's most cited limit: cloudflare recommends Workers for new projects, so Pages is in maintenance mode. Fly.io's: stopped machines still bill at $0.15 per GB of root filesystem a month, so a paused service is not a free one. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Cloudflare Pages

  • Cloudflare recommends Workers for new projects, so Pages is in maintenance mode
  • Free plan caps at 500 builds a month and 20,000 files
  • A single asset is limited to 25 MiB per file
  • Deployments older than 30 days are deleted unless recent

Fly.io

  • Egress is priced by destination region, from $0.02 per GB in North America and Europe to $0.12 per GB for Africa and India, so the same traffic costs six times more depending on where users are
  • Stopped machines still bill at $0.15 per GB of root filesystem a month, so a paused service is not a free one
  • Volumes are billed on provisioned capacity rather than usage, at $0.15 per GB a month
  • Reservation discounts of 40% require paying a year up front, from $36 to $1,440
  • Fly Kubernetes is a separate $75 a month per cluster
  • Dedicated IPv4 addresses are $2 a month each

How much do Cloudflare Pages and Fly.io cost?

Cloudflare Pages is free to use; Fly.io starts at $29/mo. Plan by plan below, from each vendor's own pricing page.

Cloudflare Pages

Free

No published plan breakdown. See the Cloudflare Pages review.

Fly.io

$29/month
  • Pay-as-You-GoOn request
    • Micro VMs and persistent storage charged by usage
    • FlyCTL CLI
    • Unlimited users and organizations
  • Serious Support$29/mo
    • Access to dedicated engineering team
    • All Pay-as-You-Go features
  • Machine Reservation BlocksOn request
    • 40% discount on machine usage
    • Requires upfront payment for savings
  • Compliance Package$99/mo
    • HIPAA compliance
    • BAAs
    • SOC2 documentation

Which should you pick?

Choose Cloudflare Pages if

  • You need git-connected builds and deploys.
  • You want to start without paying.
  • You also want direct upload of prebuilt assets.

Choose Fly.io if

  • You need global deployment.
  • You work on Web, API, Self-hosted.
  • You also want docker support.

Questions people ask

Is Cloudflare Pages or Fly.io better?
It depends on the job. Cloudflare Pages fits hosting static sites with unlimited bandwidth; Fly.io fits deploying containerised applications close to users across regions. Cloudflare Pages starts at Free and Fly.io at $29/month.
Which is cheaper, Cloudflare Pages or Fly.io?
Cloudflare Pages has a free tier; the other does not. Paid plans start at Free for Cloudflare Pages and $29/month for Fly.io.
Does Cloudflare Pages or Fly.io run on more platforms?
Cloudflare Pages runs on Web. Fly.io runs on Web, API, Self-hosted.
Can I use Cloudflare Pages for free?
Yes. Cloudflare Pages has a free tier, so you can try it without paying. Fly.io starts at $29/month.
What is Cloudflare Pages best used for?
Cloudflare Pages is most often used for hosting static sites with unlimited bandwidth, deploying frontend frameworks from github, sharing preview links with designers, adding light server-side logic with functions. Of those, hosting static sites with unlimited bandwidth and deploying frontend frameworks from github are not what Fly.io is typically brought in for.
What can Cloudflare Pages do that Fly.io cannot?
Cloudflare Pages covers Git-connected builds and deploys, Direct Upload of prebuilt assets, Pages Functions for server-side code, Preview deployments. Fly.io covers Global deployment, Docker support, Postgres databases, Redis support.

Answered from the vendors’ own pages

Cloudflare Pages: Is Cloudflare Pages free?

Yes, there is a Free plan with 500 builds a month, and the vendor says all plans include unlimited sites, seats, requests and bandwidth.

Source
Fly.io: Is there a free tier for Fly.io?

Fly.io does not advertise a free tier. The base plan is pay-as-you-go with usage-based pricing for Micro VMs and persistent storage. All users get FlyCTL CLI, unlimited organizations, private networking, SSO, ACLs, and scoped tokens.

Source
Cloudflare Pages: Should I start a new project on Pages?

Cloudflare's documentation says new static sites and full-stack apps should start with Cloudflare Workers.

Source
Fly.io: How much does Fly.io Serious Support cost?

Serious Support costs 29 USD per month and provides access to a dedicated engineering team while maintaining all pay-as-you-go features for Micro VMs and storage.

Source
Cloudflare Pages: What are the file limits?

Sites can contain up to 20,000 files on the Free plan, and a single asset can be up to 25 MiB.

Source
Fly.io: What does Fly.io Compliance Package include?

The Compliance Package is 99 USD per month and includes HIPAA compliance, BAAs, and SOC2 documentation for organizations requiring compliance certifications.

Source
Cloudflare Pages: How do I deploy to Pages?

Connect a Git provider, upload prebuilt assets with Direct Upload, or use the C3 command line tool.

Source
Fly.io: Does Fly.io offer discounts for upfront commitment?

Yes, Fly.io offers Machine Reservation Blocks with 40% discount on machine usage. This requires upfront payment but applies savings on infrastructure costs.

Source
Share

Related pages

Other head to heads