Learning Next.js the Hard Way: Breaking and Fixing My Own Portfolio

My first serious Next.js build. It started with fast experimentation, then became a real crash course in architecture, debugging, and owning implementation decisions end to end.

The ciaranwhiteside.com homepage: the portfolio hero with the oversized "Ciaran Whiteside" wordmark and a Focus summary card.
ciaranwhiteside.com — the portfolio itself, built and rebuilt in Next.js.

Where It Started

I had a clear idea of the outcome, but no mature process. ChatGPT helped speed up early iteration, but the real progress came from understanding each decision and fixing issues directly.

Getting the Stack Right

  • Started on Next.js 13.5.4 and quickly discovered version drift and security concerns
  • Migrated to Next.js 14 for stability
  • Upgraded again and hit major regressions (routing, layout, hydration)
  • Rebuilt key parts of the app with a cleaner structure and tighter control

What Changed

  • Broke large components into smaller, reusable pieces
  • Added motion intentionally to improve polish without harming performance
  • Implemented consistent light/dark theming with predictable tokens
  • Fixed hydration issues by isolating client-only behavior through dynamic imports

Branding and Presentation

I replaced placeholder assets with a proper logo set, favicon suite, and social preview image so the site looked credible in-browser and when shared.

What Went Wrong and What I Learned

  • AI assistance is powerful, but blind trust creates technical debt
  • Early shortcuts often become expensive later
  • Repeated break/fix cycles build real engineering intuition

Outcome

The portfolio now uses Git-managed article and project data, shared publication rules, and server-rendered detail pages. A published article is exposed through its page, Markdown export, RSS feed, and sitemap; a draft keeps its detail content private while the article listing can show a teaser.

The implementation is inspectable in the publication rules and route tests. Those tests check both published access and draft exclusion.

Would I Do It Again?

Yes. It was frustrating at points, but it accelerated my practical front-end and product engineering skills in a meaningful way.

Have a similar build in mind?

Keep exploring