hosting · performance · cloudflare · ecowell · deployment · ai

Free Hosting for a Real Product, Without Waiting for a Server to Wake Up

6 December 2026 · 2 min read

We needed to host several web portals for a company product, with no budget for hosting. Two things decided the design: a licence rule and a waiting-time problem.

A sleeping sloth server on the left, an energetic rabbit handing out ready-made pages on the right

The two problems

1. The licence. One popular host’s free plan is for non-commercial use and allows a single person on the account. A company product is commercial, so using it would have meant breaking the terms. We rejected it for that reason alone.

2. Sleeping servers. Some free tiers (Render’s free web services are a well-known example) stop a server after a period without traffic. The next visitor waits while it starts up again. For a portal that staff open many times a day, a slow first click is a real cost.

The design

The portals are static files: HTML, CSS and JavaScript built once. Static files do not need a server that is awake. A global network can hand them out instantly.

Only data requests need the backend. So:

  1. The portals are deployed to Cloudflare Pages on its free plan.
  2. Any request starting with /api/ is forwarded by a Pages Function to the backend.
  3. The browser sees a single address, so there are no cross-site rules to configure.

Hosting design: static pages from Cloudflare instantly, only /api requests reach the backend

The trade-offs

Option Cold start for pages Licence for a company Cost
Cloudflare Pages (free) None, pages are static Allowed for commercial use Free
Host whose free plan is non-commercial None Not allowed Free, but not legal for us
Free always-sleeping server for everything Yes, on the first visit after idle Depends Free
Paid always-on server None Fine Monthly bill

I did not measure cold-start times in this project, so I will not quote any. The point is the design: the part of the app that people see first never waits for a server.

Gotchas I hit

  • The deploy command needs the CI environment variable unset and must be run from the project folder, or it misbehaves.
  • Every deploy replaces what is live. That is how a stale build once overwrote a newer one, which I describe in Several AI Agents, One Codebase.
  • The backend still has to handle load. Static hosting does not fix a slow API. That story is in Why Our API Was Slow Despite Low CPU.

The same idea on this site

This portfolio uses the same pattern: pre-built pages from Cloudflare’s network, and a tiny function only for the visitor counter. The parts that need to be instant are static.

The takeaway

Before choosing a host, ask two questions: am I allowed to use it for this? and what happens to the first visitor after a quiet hour? Static pages plus a thin proxy answered both for free.

AI use: Written with AI assistance from my own notes and project facts, then reviewed by me. Images are AI-generated. How I use AI

Loading reactions…

Working on something similar? Let's talk.

Same problem, a question about this article, a collaboration, or an open-source project you would like me to contribute to. Pick whichever door you like: