Eli Perkins.

Migrating from Gatsby to Next.js

Some years ago, I migrated both my personal site and my blog to Gatsby. At the time, Gatsby was the new hotness, using GraphQL for data fetching and with, at the time, a rich ecosystem of developers and plugins. The site rendered out to some static JavaScript and HTML, and ran completely statically on S3 and Cloudfront. At the cost of a dollar a month, both were completely functional for what I wanted them to be: a home for me on the internet.

As most developers do, I let my blog languish, and only really updated my personal site on occasion, like when I got a new job.

Last summer (2023), I got married, and as is a developer's rite of passage, I built my own wedding website. I really wanted to learn Next.js, and play around with technologies that were absolutely overkill for a website that would be used for a single event. In the process, I learned what a joy Next.js is to use, along with how productive I can be with Tailwind CSS. While I've written JavaScript professionally before, it's been many years since I've written JavaScript in earnest, so it was refreshing to once again experience how great the tooling can be when your developer tools aren't a black box built by one company (looking at you, Apple).

Since then, I've been looking at my Dependabot warnings growing in my personal website and blog, and also feeling like their design was rotting nearly as fast as the code instead the repo was. So as a fun educational side project, and knowing what it'd take to create a new Next.js app from my experience with my wedding website, I took the plunge to rewrite both my personal site and blog in Next.js.

After a few days, I had tossed all the old Gatsby code out the window, and had a prettier, more modern, more performant personal site and blog that I feel proud of again. Instead of having a dated look and legacy code as my footprint on the internet, I had a site that I can easily update with a quick git push.

Here's what I learned:

For the curious, here's the tech stack overall:

Want to learn more? Reach out to Eli via email or on Mastodon.


Eli Perkins

Written by Eli Perkins, a mobile engineer based in Denver. Say hello on Mastodon.