From b85a0c4d09cd5a6ec5672237f912abb204b37117 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 26 May 2023 12:35:39 +0200 Subject: [PATCH] hm --- app/Providers/AppServiceProvider.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 7b4a902a0..02c59bd00 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -25,9 +25,13 @@ public function register(): void public function boot(): void { if ($this->app->environment('production')) { - $settings = InstanceSettings::first(); - if (Str::startsWith($settings->fqdn, 'https')) { - URL::forceScheme('https'); + try { + $settings = InstanceSettings::first(); + if (Str::startsWith($settings->fqdn, 'https')) { + URL::forceScheme('https'); + } + } catch (\Exception $e) { + // do nothing } } }