Files
DatBrowser/app/Providers/AppServiceProvider.php
Matthias Guillitte ec869bffe9
Some checks failed
Push image to registry / build-image (push) Failing after 52s
Debug
2025-02-08 10:23:34 +01:00

35 lines
708 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);
dd(env('APP_URL'));
dd(config('app.url'));
dd($_ENV['APP_URL']);
if (str_starts_with(env('APP_URL'), "https://")) {
$url->forceScheme('https');
}
}
}