Skip to content
Dorian FINKEL
Web & DevOps#15

This portfolio: Cloudflare Workers, CI and security

The site you are reading: pre-rendered for search engines, served by Cloudflare Workers, strict security headers, and every change tested automatically before going live.

Year2026
RoleDesign & development
  • Pre-rendered FR / EN
  • Strict CSP (A+)
  • Blocking CI

Problem

A network engineer’s portfolio has to be flawless itself: fast, readable by search engines, accessible and free of obvious holes. A classic single-page site shows nothing without JavaScript, and can break without anyone noticing.

Solution

React and Vite, with one HTML page pre-rendered per URL and per language at build time. Cloudflare Workers serves the files statically and only runs code for the assistant and the form (Turnstile, rate limits, sending through Email Routing). A strict content security policy (CSP) is generated on every build. Every Pull Request goes through lint, build and Playwright end-to-end tests with an accessibility audit; deployment follows the merge.

Outcome

A site rated A+ on securityheaders.com, with no accessibility errors in automated tests (WCAG 2 AA), readable without JavaScript, and that never ships with a known regression.
A+
security headers
00
servers to maintain

Key steps

  1. 01

    Content separated from code: one text file per language

  2. 02

    Real URLs and HTML pre-rendering of every page, in French and English

  3. 03

    Security headers generated at build time (hash-based CSP, HSTS, COOP)

  4. 04

    Minimal API in the Worker: assistant and form, with rate limits

  5. 05

    End-to-end tests and accessibility audit in CI

  6. 06

    Automatic deployment on every merge to the main branch

In the notebook

Stack

ReactViteCloudflare WorkersPlaywrightGitHub Actions