Files
DatBrowser/app/Providers/AppServiceProvider.php
Matthias Guillitte 71ad103a1f
All checks were successful
Push image to registry / build-image (push) Successful in 3m52s
debug
2025-02-08 10:46:20 +01:00

35 lines
709 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(env('TEST'));
dump(config('app.url'));
if (str_starts_with(env('APP_URL'), "https://")) {
$url->forceScheme('https');
}
}
}