renatomarinho / laravel-page-speed

Package to optimize your site automatically which results in a 35%+ optimization
MIT License
2.4k stars 275 forks source link

How to disable page speed on error pages? #157

Open vaulient opened 3 years ago

vaulient commented 3 years ago

Hello there, I'm using the package on the latest version of Laravel and everything seems to be fine but just one problem.

Whenever I have an exception, the error exception page is totally blank. I know this package is meant to be for production purposes, but I was just wondering if there is a way to ignore the minification for the error pages?

Regards.

lucasMesquitaBorges commented 3 years ago

Hi @vaulient

You can use skip routes to ignore the execution of page speeding given a matched URI. Take a look at https://github.com/renatomarinho/laravel-page-speed#skip-routes