F
Filament3mo ago
mike

Laravel Vapor attempts to load `vendor/livewire/livewire.js` (and gets a 404).

I'm having some issues after a recent PR merge on one of my projects. I believe the issue is with how a recent version of livewire or filament loads some public assets. Everything works fine locally. However, when uploading to Vapor, the livewire script is only available without the vendor path. Anyone experience this same issue? Thoughts?
No description
No description
No description
No description
1 Reply
mike
mike3mo ago
I added this to config/livewire.php
'asset_url' => (bool) env('APP_DEBUG', false) ? "/livewire/livewire.js" : "/livewire/livewire.min.js",
'asset_url' => (bool) env('APP_DEBUG', false) ? "/livewire/livewire.js" : "/livewire/livewire.min.js",
and it fixed my Vapor issue.