Force https
All checks were successful
Push image to registry / build-image (push) Successful in 3m50s

This commit is contained in:
2025-02-08 10:04:40 +01:00
parent 99f866fbef
commit 2142ea9cc2
3 changed files with 6 additions and 4 deletions

View File

@ -3,6 +3,7 @@
namespace App\Providers;
use App\Browser\BrowserJob;
use Illuminate\Routing\UrlGenerator;
use Illuminate\Support\Facades\Vite;
use Illuminate\Support\ServiceProvider;
@ -19,8 +20,12 @@ class AppServiceProvider extends ServiceProvider
/**
* Bootstrap any application services.
*/
public function boot(): void
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');
}
}
}