You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.
I've noticed that the mix helper returns an absolute URL for assets, where the elixir helper would return a relative one. However, you might not always want to be serving your assets from the same URL as the app. For example, a CDN that might sit in front of your app and cache assets.
I'd like to propose a second URL be added in config/app.php or wherever else is appropriate, something like asset_url. It could default to the primary URL but changed if necessary.
Is this a PR you'd consider? Otherwise, is the functionality I'm after already available in another way?
The text was updated successfully, but these errors were encountered:
I still think it would be beneficial to have some sort of asset_url configuration so that it would be easy to use a CDN with your apps. The PR I made above was just updated Mix to return a relative path rather than an absolute path so it's easier to replace with another host if you need.
I've noticed that the
mix
helper returns an absolute URL for assets, where theelixir
helper would return a relative one. However, you might not always want to be serving your assets from the same URL as the app. For example, a CDN that might sit in front of your app and cache assets.I'd like to propose a second URL be added in
config/app.php
or wherever else is appropriate, something likeasset_url
. It could default to the primary URL but changed if necessary.Is this a PR you'd consider? Otherwise, is the functionality I'm after already available in another way?
The text was updated successfully, but these errors were encountered: