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

8 lines
304 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.PUSHER_APP_KEY = "{{ env('PUSHER_APP_KEY') }}";
window.PUSHER_APP_CLUSTER = "{{ env('PUSHER_APP_CLUSTER') }}";
</script>