You can think of environments as the context in which your code is running.
During development, you’re building and running the application on your local machine. Going to production is the process of making your application ready to be deployed and consumed by users.
Next.js provides features for both the development and production stages of an application. For example:
Since each environment has different considerations and goals, there is a lot that needs to be done to move an application from development to production. For instance, the application code needs to be compiled, bundled, minified, and code split.
Next.js handles much of these code transformations and underlying infrastructure to make it easier for your application to go to production.
This is made possible because Next.js has a compiler written in Rust, a low-level programming language, and SWC, a platform that can be used for compilation, minification, bundling, and more.
In the next sections, we'll explore what each of these transformations are.
Quick Review: Which one of the following is not a production optimization process?