#filament v3 assets not loading on production

6 messages · Page 1 of 1 (latest)

real estuary
#

I have project locally, everything working.
I move files on web hosting,
Nginx, Ubuntu 24.04, Claudflare, Filament v3, Laravel 11
When i login into the panel i have asset error that alpine...js use http and require is https or something like that.
Anybody have nginx config for that?
Or other solution
Thanks 🙂

cedar spokeBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

toxic field
#

Are you building the assets on prod? and changed the APP_ENV to prod?

wraith junco
#

i have asset error that alpine...js use http and require is https or something like that.
Anybody have nginx config for that?
Doens't sound like a nginx issue. You just need to set the APP_URL or need this in your service provider:

if($this->app->environment('production')) {
    URL::forceScheme('https');
}
sleek fulcrum
#

Add

ASSET_URL=public 

in your .env file and run php artisan config:cache

real estuary