Vite on production is taking assets from http
despite APP_URL is set to https://
.
How to resolve this in the Vite config? I can't change Laravel AppServiceProvider to force to use https because this would cause other issues.
I use @vite
directive to get resources, I can change that if needed:
@vite('resources/js/app.js')
I tried vite build -- --https
but this doesn't seem to work.