Next.js Configuration

We have already touched on this topic slightly in the previous chapter, but this time let's dive a bit deeper into it.

Although Next.js provides lots and lots of perks out of the box, sometimes it is required to add some extra stuff, just like before, for CSS and image support.

Next.js, especially the latest version, offers a good amount of tools to customize the build and add lots of uncommon things.

In this chapter, we will learn about:

  • Special pages
  • How to make custom configurations
  • How to customize Webpack; for example, how to add TypeScript support
  • How to configure Babel

Get Next.js Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.