fix: inyectar config de Reverb desde PHP en runtime para producción

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-26 13:45:21 -06:00
parent 9e8df4f7ee
commit e42fca3c5b
2 changed files with 19 additions and 6 deletions
+11
View File
@@ -28,6 +28,17 @@
{{-- Livewire --}}
@livewireScripts
{{-- Config de Reverb inyectada en runtime para que funcione en producción --}}
<script>
window.reverbConfig = {
key: '{{ config('reverb.apps.apps.0.key') }}',
host: '{{ parse_url(config('app.url'), PHP_URL_HOST) }}',
port: {{ env('REVERB_PORT', 8080) }},
scheme: '{{ str_starts_with(config('app.url'), 'https') ? 'https' : 'http' }}',
forceTLS: {{ str_starts_with(config('app.url'), 'https') ? 'true' : 'false' }},
};
</script>
{{-- Vite (Echo/Reverb) --}}
@vite(['resources/js/app.js'])