Developer migrates portfolio from Next.js and Sanity to Astro 5 for leaner, GDPR-safe site
A developer has rebuilt their personal portfolio by switching from Next.js 14 with a Sanity CMS backend to a fully static Astro 5 site, citing unnecessary JavaScript overhead and compliance concerns as key motivators. The new site ships almost no client-side JavaScript, relying on just four small Svelte islands for interactive elements while rendering everything else as static HTML at build time. Content previously stored in Sanity's hosted CMS has been moved into the repository itself as MDX and JSON files, validated at build time using Zod schemas. The migration also eliminated all third-party network calls, including Google Fonts, reducing legal exposure under GDPR — a significant concern for the developer operating under their real name in Germany. A lightweight git-based CMS called Sveltia was added for editing content without touching the codebase directly, keeping the repository as the single source of truth.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in