Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

wip

Andras Bacsai3a987c8a6eb9
diff --git a/resources/js/app.js b/resources/js/app.js
index 1eea2d25de..0895df63d2 100644
--- a/resources/js/app.js
+++ b/resources/js/app.js
@@ -9,11 +9,11 @@ window.Pusher = Pusher;
window.Echo = new Echo({
broadcaster: 'pusher',
- cluster: window.location.hostname,
+ cluster: import.meta.env.VITE_PUSHER_HOST || window.location.hostname,
key: import.meta.env.VITE_PUSHER_APP_KEY,
- wsHost: window.location.hostname,
- wsPort: 6001,
- wssPort: 6001,
+ wsHost: import.meta.env.VITE_PUSHER_HOST || window.location.hostname,
+ wsPort: import.meta.env.VITE_PUSHER_PORT || 6001,
+ wssPort: import.meta.env.VITE_PUSHER_PORT || 6001,
forceTLS: false,
encrypted: true,
disableStats: false,