Force https
All checks were successful
Push image to registry / build-image (push) Successful in 3m50s
All checks were successful
Push image to registry / build-image (push) Successful in 3m50s
This commit is contained in:
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user