Production Mode in the NextJS Framework

Production mode is intended for running the project on a hosting service. The main goal of this mode is to ensure maximum performance and security of the project, as well as to reduce the volume of loaded files to save system memory.

Key features of production mode:

Production mode is started with two commands. First, you need to perform a production build of the project:

terminalnpm run build

And then run the built project:

terminalnpm start

After starting the project, you will see information about the main structure of the project. Special symbols mark the types of project content - static and dynamic. At the moment, we only have static content.

Задание 1

Try running the project in production mode.

Задание 2

Turn off production mode and turn on development mode. In the following lessons, we will work specifically in this mode.