Force https only if APP_URL statrs with https
Some checks failed
Push image to registry / build-image (push) Has been cancelled
Some checks failed
Push image to registry / build-image (push) Has been cancelled
This commit is contained in:
@ -24,7 +24,7 @@ class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
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');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user