Irfan Mohammed

Projects / This site

How this site is built and deployed

This site has no framework, no build step and no server I have to patch. Pushing to GitHub deploys it to Cloudflare’s edge in under a minute.

Source
HTML, one CSS file, inline SVG diagrams
CI/CD
GitHub Actions Wrangler
Hosting
Cloudflare Workers static assets
Domain
irfanmohammed.ca, Cloudflare Registrar

Pipeline

Figure 1. From commit to live site.

Why this stack

Plain HTML and CSS instead of React or a static site generator

A portfolio is a handful of documents. Plain files load instantly, work without JavaScript, and will still open in ten years without anyone upgrading a toolchain. There are no npm dependencies, so there’s no supply chain to audit.

Trade-off: the header and footer are repeated in every page. With fewer than twenty pages that’s an acceptable cost.

Cloudflare Workers static assets instead of GitHub Pages or a VPS

The domain and DNS were already on Cloudflare, so hosting there keeps everything in one account. Static assets on Workers are free at this scale, are served from the edge, and leave room to add a small Worker later, for example a contact form, without moving hosts.

Considered: GitHub Pages (simplest, but DNS split across two providers) and a VPS (full control, but a server to patch, which is the opposite of the point).

Deploy from CI, not from my laptop

Every deploy is tied to a commit, logged in Actions, and reproducible. If a deploy breaks something, I roll back by reverting the commit.

Security choices

  • The Cloudflare API token is limited to editing Workers on one account and is stored as an encrypted GitHub secret.
  • The workflow’s GITHUB_TOKEN is read-only, and third-party actions are pinned to a major version from their official publisher.
  • Security headers (CSP, HSTS, no framing, no MIME sniffing) are set in a _headers file served with the assets.
  • No third-party scripts, trackers or web fonts. The only embed is a privacy-enhanced YouTube player on one page.