Make resources/js/echo.ts byte-identical to the sendkit Echo setup (VITE_REVERB_* read directly, no window.location derivation). The release workflow now bakes only VITE_REVERB_APP_KEY, and compose.prod.yaml restores the 8080 host port so the published image's Reverb client (baked at localhost:8080) works for local docker compose. A custom-domain deploy needs the image rebuilt with VITE_REVERB_HOST/PORT/SCHEME set.
11 lines
410 B
TypeScript
11 lines
410 B
TypeScript
import { configureEcho } from '@laravel/echo-vue';
|
|
|
|
configureEcho({
|
|
broadcaster: 'reverb',
|
|
key: import.meta.env.VITE_REVERB_APP_KEY,
|
|
wsHost: import.meta.env.VITE_REVERB_HOST,
|
|
wsPort: import.meta.env.VITE_REVERB_PORT ?? 80,
|
|
wssPort: import.meta.env.VITE_REVERB_PORT ?? 443,
|
|
forceTLS: (import.meta.env.VITE_REVERB_SCHEME ?? 'https') === 'https',
|
|
enabledTransports: ['ws', 'wss'],
|
|
});
|