Case study · Web platform

Cloudflare Edge Portfolio

This site: a static Next.js export on Cloudflare Pages, with one Pages Function for the contact form and checks that keep every link live.

Source on GitHub ↗

How it fits together

  1. Write
    • Markdown notes
    • chat-to-draft script
  2. CI
    • lint + tests
    • static build
    • internal link check
  3. Cloudflare Pages
    • static pages + headers
    • contact Pages Function
  4. Watch
    • weekly external link check
    • consent-gated analytics

The problem

The old site ran on Vercel with a server it did not need, an old Next.js version with a known vulnerability, and placeholder links. The goal was a fast static site where the only dynamic part is the contact form.

What I built

Decisions

What went wrong: Tests that passed by accident

A new node:test file was also picked up by Jest, which failed with "must contain at least one test". A local check had only read the summary line, not the exit code, so CI caught it first. The fix was one ignore pattern, and the lesson was to check exit codes.

What I would improve next

Next.jsCloudflare PagesPages FunctionsGitHub ActionsTypeScript

← All projects