Home / Work / jasperhaynes.com: This Portfolio

jasperhaynes.com: This Portfolio

Personal Project ยท 2026

How jasperhaynes.com is built today: four Astro 7 apps (home, blog, training, work) merged into one Vercel deployment, content from Supabase, database updates on merge.

  • 4Apps
  • Astro 7Framework
  • 1Deployments
  • SupabaseContent
  • Astro
  • React
  • Supabase
  • Vercel
  • Monorepo
jasperhaynes.com: This Portfolio

What it is

This site is a working project in its own right. It started as three apps on one domain. In 2026 it runs as four apps (home, blog, training and work) that build separately and ship as one Vercel deployment under jasperhaynes.com.

How it is built

  • Home (/): an Astro 7 page with one React island. The page is rendered to HTML at build time, so crawlers and visitors without JavaScript get the same markup (one h1, one nav, the contact section) that React then hydrates. The latest posts and selected projects are read from the database during the build.
  • Blog (/blog/, Dutch pages under /nl/): Astro 7, static. Every post lives in a Supabase table as markdown, not in local files. Production builds only show posts whose publish date has passed.
  • Training (/training/): Astro 7 with React islands. Free AI courses with login and progress tracking through Supabase Auth.
  • Work (/work/): Astro 7, static. This page and the other case studies come from a Supabase table.

All four share one set of design tokens and one navigation, so a change to a link or a colour is made once and shows up everywhere. Light and dark mode are both supported.

One deployment from four builds

Each app builds to its own folder. A merge script then copies blog, training and work output into one dist/, moves their asset files to the shared root, and generates one sitemap for the whole domain. The same step writes a search index for the phone menu. It also copies llms.txt to the root and generates llms-full.txt, which gives language models the full text of every published post without crawling.

Database changes on merge

When a change to the database schema is merged to main, a workflow applies it to the live database automatically. The database is shared with two other projects, so the migration history is shared too. The workflow accounts for versions the other projects recorded, and it stops on purpose when a new change is numbered earlier than the newest live version, instead of guessing.

The look

The current version uses a field-notebook look across all four apps, built from the shared token sheet. One font (Inter), colours only from tokens, and a layout that switches to a phone version at 860 pixels.

Testing

There is no unit test suite. Playwright end-to-end tests are the only tests. A separate site audit visits every page in the sitemap, including logged-in training pages, on phone and desktop and in light and dark mode.

Earlier experiment: a hero video

In 2026 the home page got a looping coast video instead of a static photo. 50 candidate clips from a free stock-video library were compared on a throwaway preview page before one was picked. None of them was committed to the repo: the page pointed at the library's own hosted files. The preview page also showed that browsers limit how many videos can decode at once, so it kept a capped pool of 16 live video elements and dropped the oldest. The home page has since been rebuilt; the lessons stayed: prototype on a page you can throw away, and keep large media out of git.

What we learned

  • Workspace hoisting is not reliable for Astro builds. Packages the home app needs at runtime have to be listed in its own package file, or the build can fail to find them.
  • Never empty the output folder before merging. The home app writes straight into the shared dist/; clearing it loses work the merge depends on.
  • Hosting settings do not always pass through. Database settings have to be injected explicitly at build time, because reading them from the environment folder alone failed on Vercel.
  • Migrations leave leftovers. The move from a single-page React app to Astro left old config files in the repo that no script uses any more. They are documented as dead so nobody treats them as live.

Work with me

I speak, I consult, and I teach teams to ship with AI.

Send a request Book speaking Free training