koel/resources/views/client-js-vars.blade.php
2022-04-25 16:07:38 +03:00

9 lines
397 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 = @json(asset(''));
window.PUSHER_APP_KEY = @json(config('broadcasting.connections.pusher.key'));
window.PUSHER_APP_CLUSTER = @json(config('broadcasting.connections.pusher.options.cluster'));
</script>