Force https only if APP_URL statrs with https
Some checks failed
Push image to registry / build-image (push) Has been cancelled

This commit is contained in:
2025-02-08 10:11:14 +01:00
parent 2142ea9cc2
commit 1c71b88d15

View File

@ -24,7 +24,7 @@ class AppServiceProvider extends ServiceProvider
{ {
Vite::prefetch(concurrency: 3); Vite::prefetch(concurrency: 3);
if (env('APP_ENV') !== 'local') { //so you can work on it locally if (str_starts_with(env('APP_URL'), "https://")) {
$url->forceScheme('https'); $url->forceScheme('https');
} }
} }