Hacker News new | ask | show | jobs
by selfmodruntime 1600 days ago
I‘m going to make a case for one of the more complicated SSG setups.

My current domain is a full blown Next.js setup hosted at Netlify. I use Next.js because I use React in my day job and frankly, I enjoy it. Out of Next I get: partial hydration, automatic image optimization, a no-bullshit build setup, static pages where I need them and the ability to add complex things like Markdown and LaTeX support or interactive graphs for more involved blog post. The real winner is MDX. Where I had to resolve to cheap tricks like shortcodes before, I can just import and place my graph components.

By using the Netlify free tier, my site gains free SSL and builds automatically when I push to master.

You would think this is insanely heavyweight for a basic homepage, but it’s not. Once setup, I can just write my blog in markdown. My entire site ships at just a bit over 50KB gzipped.

Do you need this setup? No. But I had fun doing it.