Add echo port via mode
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
8c820ab24d
commit
75d9301033
|
@ -6,6 +6,8 @@ const toast = useToast();
|
||||||
|
|
||||||
window.Pusher = Pusher;
|
window.Pusher = Pusher;
|
||||||
|
|
||||||
|
console.log();
|
||||||
|
|
||||||
function handleJobEvent(event, type = 'success') {
|
function handleJobEvent(event, type = 'success') {
|
||||||
if (event.message) {
|
if (event.message) {
|
||||||
toast[type](event.message);
|
toast[type](event.message);
|
||||||
|
@ -16,8 +18,8 @@ var echo = new Echo({
|
||||||
broadcaster: 'pusher',
|
broadcaster: 'pusher',
|
||||||
key: 'adremakey',
|
key: 'adremakey',
|
||||||
wsHost: window.location.hostname,
|
wsHost: window.location.hostname,
|
||||||
wsPort: 80,
|
wsPort: import.meta.env.MODE === 'development' ? 6001 : 80,
|
||||||
wssPort: 443,
|
wssPort: import.meta.env.MODE === 'development' ? 6001 : 443,
|
||||||
forceTLS: false,
|
forceTLS: false,
|
||||||
disableStats: true,
|
disableStats: true,
|
||||||
cluster: 'adrema',
|
cluster: 'adrema',
|
||||||
|
|
Loading…
Reference in New Issue