Blog.

Why did I choose Next.js?

This is the first post of my blog that I wrote after migrating from gatsby to Next.js.

Although I really like gatsby, I still find it difficult to use it and hard to set up in particular to support my needs.

After several years and when I decided to write a couple of o blog posts my the build time of the site was slow because as you might know the pages on gatsby are generated on build time.

But let's not focus on that because I'm still a big fan of gatsby for single-page websites that stay static and don't need to be rebuilt often.

Why Next.js then?

I'm a full-stack developer that has been working with node.js and react for a long time and that was one of the reasons I decided to migrate to Next.js, it's a framework that is easy to use and supports backend operation particularly using lambda functions and webpack 5 support out of the box with easy configuration.

Also, a big plus as a typescript passionate developer is that Next.js supports typescript out of the box and provides amazing tooling to work with it.

Small things

The small details might not be that important to you but I think it's worth mentioning.

  • SSR (Server Side Rendering):
  • SEO (Search Engine Optimization):
  • Code splitting
  • Page caching
  • Pagination

Finally, the framework is fast and easy to use and I'm sure that it will be a great choice for a developer that wants to start a new project.