koel/resources/views/client-js-vars.blade.php

10 lines
397 B
PHP
Raw Normal View History

<script>
{{--
We actually should use a library like dotenv-webpack to load .env variables.
Unfortunately, can't get it to work for now :(
--}}
2022-04-25 13:07:38 +00:00
window.BASE_URL = @json(asset(''));
window.PUSHER_APP_KEY = @json(config('broadcasting.connections.pusher.key'));
window.PUSHER_APP_CLUSTER = @json(config('broadcasting.connections.pusher.options.cluster'));
</script>