When using Laravel Livewire, there's a script that's added, which uses the route: /livewire.js. The current nginx configuration tries to serve this as a static asset, due to the NGINX_STATIC_EXT_REGEX variable.
The current workaround is to simply remove js from the NGINX_STATIC_EXT_REGEX variable. Another work around is to create your own preset.
Would it be possible to add the follow location directive to the laravel preset:
When using Laravel Livewire, there's a script that's added, which uses the route:
/livewire.js
. The current nginx configuration tries to serve this as a static asset, due to theNGINX_STATIC_EXT_REGEX
variable.The current workaround is to simply remove
js
from theNGINX_STATIC_EXT_REGEX
variable. Another work around is to create your own preset.Would it be possible to add the follow location directive to the laravel preset: