Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filamentβ€’3y agoβ€’
1 reply
Sanchit Patil

Ngnix not loading dynamic assets in production

#offtopic
Does anyone have any idea about the issue of ngnix not loading assets (image files) in production (nginx)
these files are from the phone-input plugin

// routes from the plugin code
Route::get('/phone-input-flags.png', function () {
    return response()->file(__DIR__.'/../images/vendor/intl-tel-input/build/flags.png');
});

Route::get('/phone-input-flags@2x.png', function () {
    return response()->file(__DIR__.'/../images/vendor/intl-tel-input/build/flags@2x.png');
});
// routes from the plugin code
Route::get('/phone-input-flags.png', function () {
    return response()->file(__DIR__.'/../images/vendor/intl-tel-input/build/flags.png');
});

Route::get('/phone-input-flags@2x.png', function () {
    return response()->file(__DIR__.'/../images/vendor/intl-tel-input/build/flags@2x.png');
});


I have even manually added it to the vhost file

location = /phone-input-flags.png {
        try_files $uri /index.php?$query_string;
}
location = /phone-input-flags.png {
        try_files $uri /index.php?$query_string;
}


still, it is being considered as a static PNG file and the call is not going to Laravel route.
On the other end livewire.js is working perfectly though.

Could you please help with this if you have any ideas?
thank you, πŸ™‚
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel β€’ Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

filament v3 assets not loading on production
FilamentFFilament / β“β”Šhelp
2y ago
SpatieMediaLibraryFileUpload not loading in production
FilamentFFilament / β“β”Šhelp
3y ago
loadedOnRequest() not loading assets on request
FilamentFFilament / β“β”Šhelp
7mo ago
Filament assets 404 on production
FilamentFFilament / β“β”Šhelp
3y ago