From d938bfd0d0126f66581db5b26359101cb08cd897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corn=C3=A9=20Veldman?= Date: Fri, 28 Oct 2022 15:38:26 +0200 Subject: [PATCH] Changing .env to make Pusher work without editing the commented out part in the bootstrap.js (#6021) * edit file * This works for null, undefined and '', because it's JavaScript --- resources/js/bootstrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js index d21a8c0f2..366c49d09 100644 --- a/resources/js/bootstrap.js +++ b/resources/js/bootstrap.js @@ -26,7 +26,7 @@ window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; // window.Echo = new Echo({ // broadcaster: 'pusher', // key: import.meta.env.VITE_PUSHER_APP_KEY, -// wsHost: import.meta.env.VITE_PUSHER_HOST ?? `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`, +// wsHost: import.meta.env.VITE_PUSHER_HOST ? import.meta.env.VITE_PUSHER_HOST : `ws-${import.meta.env.VITE_PUSHER_APP_CLUSTER}.pusher.com`, // wsPort: import.meta.env.VITE_PUSHER_PORT ?? 80, // wssPort: import.meta.env.VITE_PUSHER_PORT ?? 443, // forceTLS: (import.meta.env.VITE_PUSHER_SCHEME ?? 'https') === 'https',