Skip to content

Commit 23bd0f1

Browse files
committed
Combine local environment detection forces
1 parent c44203c commit 23bd0f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/BoostServiceProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ public function register(): void
5555

5656
public function boot(Router $router): void
5757
{
58-
if (! app()->environment(['local', 'testing'])) {
58+
// Only enable Boost on local environments
59+
if (! app()->environment(['local', 'testing']) && config('app.debug', false) !== true) {
5960
return;
6061
}
6162

0 commit comments

Comments
 (0)