Laravel - Compiling Assets - Custom Mix Base Urls
If your Mix compiled assets are deployed to a CDN separate from your application, you will need to change the base URL generated by the mix
function. You may do so by adding a mix_url
configuration option to your application's config/app.php
configuration file:
'mix_url' => env('MIX_ASSET_URL', null)
After configuring the Mix URL, The mix
function will prefix the configured URL when generating URLs to assets:
https://cdn.example.com/js/app.js?id=1964becbdd96414518cd