Site Updated to Next.js
Well, it's been a while since I last posted anything. It turns out authoring a blog post every month was a bit ambitious!
Since then, I have:
- graduated university (yay!)
- built my first PC ever
- started my life as a corporate wage slave (jokes! I really enjoy my job, haha)
- picked up electric guitar (still working on basic chords)
- read two books (haven't read for fun since middle school)
- become more consistent at v6 climbs
- bought my first car
That's a lot!
Yesterday, I wanted to make a quick update to my blog, something which I have been procrastinating. After setting up my development environment on Windows, I tried to build my old website. Lo and behold, everything was deprecated. I ran an npm update
and npm audit fix --force
in hopes that my dependency conflicts would be resolved.
No dice.
Seeing that the simple StackOverflow fixes to my problems didn't work, I took the next most rational step: rebuild my entire website because I fucking hate myself suck at frontend development. This choice wasn't a complete spur of the moment decision. The source code for my old site has been a complete mess and I have been hoping to clean it up. A rewrite of this site would be a great opportunity to better restructure everything.
I have been hearing about Next.js for a while. Apparently, it's a React framework (as opposed to React, which is a Javascript framework...). When I first took a look at their Getting Started guide, their expressive routing really caught my attention. Next.js uses a directory structure to route pages, which makes it dead easy to add pages to your website. You can even customize it to have dynamic routes. On my old website, I programmed my own custom solution using react-router v4, which is now at v6.4 by the way. Having your routing solution work automagically made Next.js appealing to me, in addition to the normal cool stuff like static site generation.
24 hours later, I have migrated my entire site to Next.js. It was a lot quicker than I expected. Then again, my site isn't all that complicated either. Then again again, I am awful at frontend, but Next.js made it pretty simple (I swear I am not a Next.js merchant). Overall, I am happy with my Next.js experience, would definitely recommend if you want build your own website.
Anyways, that's all for now! Expect at least one more blog post this summer, maybe.