fix: force https scheme in production to resolve mixed-content browser blocking in dokploy

This commit is contained in:
idevakk
2026-03-01 09:02:40 +05:30
parent 2989613b75
commit 42e2f1bf0a

View File

@@ -35,11 +35,14 @@ class AppServiceProvider extends ServiceProvider
$this->loadConfiguration(); $this->loadConfiguration();
$this->loadDomainUsernameData(); $this->loadDomainUsernameData();
// Only load application data when not in testing environment
if (! $this->app->environment('testing')) { if (! $this->app->environment('testing')) {
$this->loadApplicationData(); $this->loadApplicationData();
} }
if ($this->app->environment('production')) {
\Illuminate\Support\Facades\URL::forceScheme('https');
}
Cashier::calculateTaxes(); Cashier::calculateTaxes();
} }