H9L / Projects / Sheet 02.4

Best of Travel

A complete rebuild of a tailor-made travel website, from an ageing Ruby static site generator and PHP backend to Astro, Node.js and Bunny.net edge scripting, taking PageSpeed from around 50 to around 95.

Role
Lead developer & architect
Engagement
Rebuild & ongoing support
Focus
Modernisation, Core Web Vitals, edge hosting
Stack
  • Astro
  • TypeScript
  • Node.js
  • Contentful
  • Bunny.net
  • GitHub Actions
The Best of Travel homepage with the headline "Verre reizen op maat" over a view of the mountains around Rio de Janeiro.
Fig. 02.4 · The Best of Travel homepage with the headline "Verre reizen op maat" over a view of the mountains around Rio de Janeiro.
  • 50 → 95 PageSpeed score for Core Web Vitals, which helps with SEO
  • 100% TypeScript, from the frontend to the backend scripts
  • 0 VMs the site runs on Bunny.net CDN and edge scripting

The brief

Best of Travel designs tailor-made long-haul trips. Their website is where every journey starts, so it has to be fast, findable and easy for the team to keep up to date. The site ran on an old Ruby static site generator, with unmaintained PHP scripts on a virtual machine for everything that needed a backend. It worked, but it was slow, hard to change and getting harder to maintain every year.

A complete rewrite in Astro

I rebuilt the site from scratch in Astro. The content stays where the team already manages it: Contentful remains the headless CMS, so editors didn’t have to learn anything new or migrate a single page by hand. Astro pulls the content at build time and ships plain, lean HTML with only the JavaScript a page actually needs.

From PHP to Node.js

The old PHP backend scripts were rewritten as highly optimised Node.js code. Together with the Astro frontend, the full stack is now TypeScript: one language, one set of tools and type checking from the content model to the server code.

From a VM to the edge

Hosting moved from a virtual machine to the Bunny.net CDN. The pages are served from edge locations close to the visitor, and the logic that used to live in PHP now runs as Bunny edge scripts. No server to patch, no single machine to fall over.

Faster, and better for SEO

All of this together took the Core Web Vitals PageSpeed score from around 50 to around 95. For a travel site that lives on organic search, that speed directly helps rankings and keeps visitors on the page.

Lighter tooling

Along the way the tooling got simpler as well:

  • Semaphore CI and Bitbucket were replaced by GitHub and GitHub Actions, so code, reviews and deployments live in one place.
  • The iubenda cookie banner was replaced by a lightweight custom solution that does what’s needed without the weight of a third-party script.

Ongoing support

Best of Travel is very happy with the result, and I now support them with new feature requests as they come up.

The stack

Astro and TypeScript for the site, Contentful as the headless CMS, Node.js for the backend logic, Bunny.net CDN and edge scripting for hosting, and GitHub Actions for builds and deployments.