Files
DatBrowser/app/Providers/AppServiceProvider.php
Matthias Guillitte d4ea33e181
Some checks failed
Push image to registry / build-image (push) Failing after 1m1s
Fix debug
2025-02-08 10:31:51 +01:00

35 lines
714 B
PHP

<?php
namespace App\Providers;
use App\Browser\BrowserJob;
use Illuminate\Routing\UrlGenerator;
use Illuminate\Support\Facades\Vite;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(UrlGenerator $url): void
{
Vite::prefetch(concurrency: 3);
dump(env('APP_URL'));
dump(config('app.url'));
dump($_ENV['APP_URL']);
if (str_starts_with(env('APP_URL'), "https://")) {
$url->forceScheme('https');
}
}
}