Introduction to Magento 2 modes To improve security and ease-of-use, Magento 2 added commands that switches Magento modes(default/ developer/ production).
If you are deploying the Magento 2 application on a single server, the default mode enables you to do so without changing any settings. However, its not optimized for production.
You need to change to anyone of the other modes, to deploy on more than one server or to optimize it for production.
In this mode, Symlinks are published for static view files to the pub/static directory. Exceptions are not displayed to the user, exceptions are written to log files. Hides custom X-Magento-* HTTP request and response headers
This mode is intended for development purpose only.
In this mode, Symlinks are published for static view files to the pub/static directory and provides verbose logging. Enables automatic code compilation and enhanced debugging. It shows custom X-Magento-* HTTP request and response headers. The results in the slowest performance (because of the preceding).