← All articles

Running a website on free tiers: what you gain, what you give up

For a small website, infrastructure does not have to begin with a monthly bill. This site runs entirely on free tiers: the front end on Cloudflare Pages, the API server on Render, the database on Supabase. This post records what I saw using them; it is not advice for every case.

What works well

  • The front end is static files served from Cloudflare's network, so the prebuilt pages open quickly even when the API is asleep.
  • Cloudflare rebuilds and deploys automatically when I push code; I usually see a change within a minute or two.
  • Supabase gives a Postgres database with row-level access control, enough for the data of an introduction site.

Weak spot one: the server sleeps

Render's free tier lets the server sleep when nobody is using it, so the first API call after a quiet spell can be noticeably slow. I handle it in two ways: the public pages are prebuilt so they do not wait for the API to show content, and a small Cloudflare Worker calls the server on a schedule to keep it awake. I checked the Worker's log and saw no failed self-calls.

Weak spot two: the build depends on the API

When building, I fetch the project list from the API to create each project's page and sitemap entry. If the API is asleep this step can wait a long time. So the script allows each call up to 70 seconds, retries once, and if it still fails it only leaves out the project pages instead of breaking the whole build.

Weak spot three: security is not automatic

Free does not mean safe by default. On Supabase I turned on row-level security for every table and opened no public access; only the API server, holding the service key in an environment variable, can read and write data. The front end ships a content security policy (CSP) that limits where scripts and fonts may come from.

When to pay

Free tiers suit an introduction site, a prototype or a website with little traffic. If your site needs steady responses at all times, takes many orders or promises customers uptime, plan a paid tier for the server part first, since that is where the free tier limits most. When I quote, I will say which part of the project belongs on which tier.

Get a quote