When I want to deploying my app to production. I simply run
composer install --no-dev --optimize-autoloader
Which will result an error.<