How Next.js Works

Build Time and Runtime

Build time (or build step) is the name given to a series of steps that prepare your application code for production.

When you build your application, Next.js will transform your code into production-optimized files ready to be deployed to servers and consumed by users. These files include:

  • HTML files for statically generated pages
  • JavaScript code for rendering pages on the server
  • JavaScript code for making pages interactive on the client
  • CSS files

Runtime (or request time) refers to the period of time when your application runs in response to a user’s request, after your application has been built and deployed.

Next, let’s discuss some of the terms introduced in this section, such as client, server, and rendering.

True or False: Build time is the period of time when an application is being built in response to a user's request.