FilamentF
Filament15mo ago
Nuxnux

Run into a problem setting up reverb for notification

Here the step i make
    'broadcasting' => [

        'echo' => [
            'broadcaster' => 'reverb',
            'key' => env('VITE_REVERB_APP_KEY'),
            'cluster' => env('VITE_REVERB_APP_CLUSTER'),
            'wsHost' => env('VITE_REVERB_HOST'),
            'wsPort' => env('VITE_REVERB_PORT'),
            'wssPort' => env('VITE_REVERB_PORT'),
            'authEndpoint' => '/broadcasting/auth',
            'disableStats' => true,
            'encrypted' => true,
            'forceTLS' => false,
        ],

    ],

i change those in filament.php config it works perfectly on dev but on production i get this error
echo.js?v=3.2.116.0:2 Uncaught You must pass your app key when you instantiate Pusher.

my .env is setup properly and from what is see the Echo instance is not properly construct
                window.Echo = new window.EchoFactory(JSON.parse('{\u0022broadcaster\u0022:\u0022reverb\u0022,\u0022key\u0022:null,\u0022cluster\u0022:null,\u0022wsHost\u0022:null,\u0022wsPort\u0022:null,\u0022wssPort\u0022:null,\u0022authEndpoint\u0022:\u0022\\\/broadcasting\\\/auth\u0022,\u0022disableStats\u0022:true,\u0022encrypted\u0022:true,\u0022forceTLS\u0022:false}'))

                window.dispatchEvent(new CustomEvent('EchoLoaded'))

Here everything is set to null which result to this error

Did i miss any steps ?
Was this page helpful?