Zero-Cost Hosting: Deploy a .si Domain to Cloudflare Pages
This is fusi.si's own build log — from a freshly registered domain to a live site, at zero cost and fully reproducible. You can follow the same steps.
Architecture & cost
Our stack is minimal: pure static HTML/CSS/JS, no backend, no database, hosted on Cloudflare Pages' free tier. A domain is the only cost.
- Cloudflare Pages (free, with free HTTPS)
- Any registrar (here, a .si domain)
- A local folder plus one deploy command
Step 1: point NS to Cloudflare
After adding the site in Cloudflare, you get two nameservers. Replace your registrar's defaults with them.
Propagation can take minutes to 48 hours. Confirm via registrar WHOIS that the new NS shows up.
Step 2: upload the site
- In the Cloudflare dashboard: Pages → Create → Upload assets — drag the folder, simplest option
- Deploy in one command with wrangler — better if you update often
Step 3: custom domain & HTTPS
Add your domain under Custom domains; Cloudflare creates the CNAME and issues HTTPS automatically once NS is switched.
Common pitfalls
- The record may be incomplete; once the zone is active, delete it and add it again
- HTTP 200 does not mean the content is right — you may be seeing a stale cache, so check the title actually returned
Wrap-up
Under an hour, zero cost. Domain ownership stays with your registrar, so you can move hosting any time.
Command-line deploy details
For frequent updates, the CLI is faster. One command does it:
CLOUDFLARE_API_TOKEN=your-token CLOUDFLARE_ACCOUNT_ID=your-account-id \
wrangler pages deploy ./your-directory --project-name=your-project
- Token scope: requires
Cloudflare Pages: Edit; requires a DNS change as wellDNS: Edit。 - Account vs user token:The verification endpoint differs; account-level tokens must be checked via the account path.
- Preview URL:Every deploy produces a hashed URL, useful for previewing before a rollback.
Preview first, domain second
Order matters: get pages.dev working first, then bind the custom domain. Binding depends on NS already pointing to Cloudflare; otherwise it stays pending.
The pending-zone pitfall
Binding a custom domain while the zone is still pending can leave DNS records unwritten. Fix: once the zone is active, delete and re-add the custom domain.
Free tier & notes
- Free tier suffices:Bandwidth and build counts on a static site are ample for a personal site.
- Automatic HTTPS:Certificates are issued and renewed automatically; nothing to manage by hand.
- Ownership stays put:The domain stays with the registrar; changing hosts does not affect ownership.
Real case: the real cost of a content site
This site is the case: pure static HTML/CSS/JS on Cloudflare Pages free tier, zero hosting cost, ~1 hour from registration to a live site (excluding content), and HTTPS was fully automatic once the custom domain was bound.
- Only cost: the domain renewal is the only cost — hosting, CDN and HTTPS certificates are all covered by the free tier.
- Ownership safe: the domain stays with the registrar; Cloudflare is only the hosting layer, so you can move at any time.