Livewire not loading when deploying laravel to a subdirectory

I deployed a laravel application to a subdirectory: server.com/application/

Css and Js load fine with {{ url(mix('css/app.css')) }} but the blade directive @livewireScripts tries to get

'server.com/vendor/livewire/livewire.js'

without the subdirectory.

How can this be fixed?