Files
DatBrowser/app/Providers/AppServiceProvider.php
Matthias Guillitte 2142ea9cc2
All checks were successful
Push image to registry / build-image (push) Successful in 3m50s
Force https
2025-02-08 10:04:40 +01:00

32 lines
634 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);
if (env('APP_ENV') !== 'local') { //so you can work on it locally
$url->forceScheme('https');
}
}
}