Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1535

Laravel Vite assets from https

$
0
0

Vite on production is taking assets from http despite APP_URL is set to https://.

enter image description here

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.


Viewing all articles
Browse latest Browse all 1535

Trending Articles