· 2 min read
Rebuilding my site in 2026
Moving a 2020 Create React App off Netlify and onto Astro and Cloudflare, and what changed for performance and SEO.
My personal site had been running, mostly untouched, since 2020. It was a Create React App single-page app on Netlify. It had a Netlify function serving my resume as JSON, and Google Analytics through react-ga. It still said I worked at a company I left in 2022.
What was wrong with it
The biggest problem wasn’t the stale content. It was that nothing was in the HTML. Every page shipped an empty <div id="root"> and a JavaScript bundle. A crawler that doesn’t run JavaScript saw one line of text: my name. Meta tags were added by react-helmet at runtime, so link previews were hit or miss.
There was more:
- Universal Analytics was shut down in 2023, so the analytics script did nothing.
- The resume data lived in a JS file that was last updated in 2019.
- The bundle shipped React, React Router, Font Awesome and a word-cloud library just to render a page of text.
The new stack
- Astro, fully static. Every page is plain HTML at build time. The only client-side JavaScript is the dark-mode toggle and Astro’s view transitions.
- Content collections for posts and pages, with frontmatter validated by a schema, so a typo in a date fails the build instead of shipping.
- JSON Resume as the single source for my resume. One
resume.jsonfile renders the resume page, a downloadable PDF, structured data for search engines, and the raw/resume.json. - Build-time Open Graph images, rendered with Satori, so every post gets its own share card.
- Cloudflare Workers static assets for hosting, with Cloudflare Web Analytics instead of Google Analytics: no cookies, no consent banner.
SEO basics, done properly this time
Each page now has its own title, description, canonical URL and share image. The home and resume pages include Person structured data. Posts include BlogPosting. There’s a sitemap, an RSS feed and a robots.txt.
// The resume schema fails the build if resume.json drifts.
export const resume: Resume = resumeSchema.parse(raw);
If you want to look under the hood, the source is on GitHub.