mirror of
https://github.com/koel/koel
synced 2024-11-10 14:44:13 +00:00
c970481f19
* remove all absolute forward slashes to make relative urls * set global baseUrl in common blade template use this variable in all api calls * fix absolute url paths in scss set a base href in app index files for all relative resource paths * rename baseUrl to BASE_URL
9 lines
344 B
PHP
9 lines
344 B
PHP
<script>
|
|
{{--
|
|
We actually should use a library like dotenv-webpack to load .env variables.
|
|
Unfortunately, can't get it to work for now :(
|
|
--}}
|
|
window.BASE_URL = "{{ asset('') }}";
|
|
window.PUSHER_APP_KEY = "{{ env('PUSHER_APP_KEY') }}";
|
|
window.PUSHER_APP_CLUSTER = "{{ env('PUSHER_APP_CLUSTER') }}";
|
|
</script>
|