Skip to content

This guide shows how the site you are reading is built and why it costs nothing to host. The example is partners.rs itself: a catalogue of affiliate programmes in Serbian (Latin and Cyrillic script) and English, about 270 pages. The only fixed cost is the domain.

A static site is enough

Most affiliate sites change slowly. Programme terms, reviews and guides change every few weeks, not every minute. Such a site does not need a server that builds a page for each visitor. It can build every page once and serve ready files.

partners.rs is built with Astro, a framework that turns templates and Markdown into plain HTML files. There is no database and no admin panel to keep patched. A visitor gets a file that was built in advance, so the page opens fast and there is little to break or to attack.

If the site later needs something live, such as a sign-in or a form, that part can run as a small Worker with a database next to the static pages. The rest of the site stays as it is.

Hosting on Cloudflare Workers

The built files are served by Cloudflare Workers. On the free plan Cloudflare states that “requests to static assets are free and unlimited” (checked 18.11.2026). The limits that matter for a static site are about size: up to 20,000 files per Worker version and 25 MiB per file on the free plan. A site of a few hundred pages is far below both.

The daily limit of 100,000 requests on the free plan applies to Worker code, not to static files. partners.rs runs no code per visit, so that limit does not touch it.

Deploys from GitHub

The code and the data live in a GitHub repository. Every push to the main branch starts a GitHub Actions job that installs the project, runs the tests, builds the site and uploads it to Cloudflare with Cloudflare’s command line tool.

passfail

Push to the
main branch

GitHub Actions:
tests

Every morning,
no change needed

Build: data,
pages, Cyrillic

Checks on
built pages

Deploy to
Cloudflare Workers

The previous
version stays

IndexNow: changed
pages only

How a change travels from a push to GitHub to the live site on Cloudflare

The same job also runs every morning without any push. The site shows how fresh each programme term is, and that freshness is counted from the build date. A daily build keeps dates honest, and a value past its window turns into “by agreement” on its own, with no edit.

GitHub Actions is free on public repositories. A private repository on the free GitHub plan gets an included monthly allowance (12 USD of compute, roughly 2,000 minutes on a standard Linux machine, checked 18.11.2026). A build of a few minutes a day fits inside it.

Data in files, not in code

Each programme is one YAML file: rates, payouts, carryover, cookie length, and for every value the source and the date it was read. Templates read these files during the build. Changing a programme’s terms means editing its file and pushing; no code changes.

The repository history then works as a log of checks: who changed which value, when, and from which source.

Checks before anything goes live

The build does not accept a value without a source: such a file stops the build before any page is made. A value read more than 60 days ago stays in the file but is not shown as a number; the page says “by agreement” until someone reads the source again.

After the pages are built, a script reads every page and stops the deploy if, for example:

  • a page lacks the 18+ and responsible gambling notice;
  • language versions of a page do not point to each other;
  • an internal link leads to a page that does not exist.

A failed check stops the deploy, and the previous version of the site stays online.

One lesson from launch: Search Console rejected the sitemap because it carried an element for the browser view of the file. A sitemap should hold only the tags its format defines. A browser view, if you want one, belongs in a stylesheet reference, not inside the list of pages.

Three scripts from two texts

The Serbian Latin and English texts are written by hand. The Cyrillic version is generated after the build: a script transliterates every Serbian page and keeps a protected list of words in Latin, such as brand names and the word “affiliate”. The build fails if a word comes out half Latin and half Cyrillic. Each page then declares its three language versions to search engines.

Search engines and sharing

The sitemap is generated from the pages that were really built, so it cannot list a missing page, and pages closed to indexing are left out. After a deploy, a script tries to send only the pages whose content changed to IndexNow; if that fails, the deploy still stands. Several search engines use IndexNow, but Google is not one of them. Preview images that messengers and social networks show for the main pages are drawn during the build as well.

If you would rather not build it yourself

A site like this needs the build, the checks and the deploy set up once. If you need casino affiliate sites and would rather skip that work, look at Site Generator. It is our service: your AI agent builds the site and publishes it to your own Cloudflare Pages account. Plans and terms are on the service’s site. Published sites keep working if you cancel the subscription.

partners.rs itself is not built with Site Generator. It is a catalogue with its own data rules, so it has its own build. For brand and rating sites, the service saves that work. Our other services and libraries for affiliate sites are on the Tools page.

Frequently asked questions

Can an affiliate site really run on free hosting?

Yes, if the site is static: pages are built in advance and served as files. Cloudflare serves static files from a Worker for free with no request limit. You still pay for the domain.

What does a static site lose?

Anything that needs a server at the moment of the visit: sign-in, forms that save data, search on the server. Those parts can be added later as a small Worker with a database, without moving the rest of the site.

Do I need to know how to code?

For the approach in this guide, yes: someone has to set up the build and the checks once. If you would rather not, a service such as Site Generator builds and publishes the site for you.

How do new pages reach search engines?

The build writes a sitemap that lists only pages that were really built, and after a deploy a script tries to send the changed pages to IndexNow. Google does not take part in IndexNow, so for Google the sitemap in Search Console does the job.