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.

fix: only show realtime error on non-cloud instances

Andras Bacsai5e531d6f96b9
diff --git a/resources/views/livewire/layout-popups.blade.php b/resources/views/livewire/layout-popups.blade.php
index 3f4436b8bf..b2cc76f2fd 100644
--- a/resources/views/livewire/layout-popups.blade.php
+++ b/resources/views/livewire/layout-popups.blade.php
@@ -15,7 +15,7 @@
checkPusherInterval = setInterval(() => {
if (window.Echo && window.Echo.connector.pusher.connection.state !== 'connected') {
checkNumber++;
- if (checkNumber > 4) {
+ if (checkNumber > 5) {
this.popups.realtime = true;
console.error(
'Coolify could not connect to its real-time service. This will cause unusual problems on the UI if not fixed! Please check the related documentation (https://coolify.io/docs/knowledge-base/cloudflare/tunnels) or get help on Discord (https://coollabs.io/discord).)'
@@ -23,31 +23,36 @@
clearInterval(checkPusherInterval);
}
}
- }, 1000);
+ }, 2000);
}
}
}">
@auth
<span x-show="popups.realtime === true">
- <x-popup>
- <x-slot:title>
- <span class="font-bold text-left text-red-500">WARNING: </span>Realtime Error?!
- </x-slot:title>
- <x-slot:description>
- <span>Coolify could not connect to its real-time service.<br>This will cause unusual problems on the UI
- if
- not fixed! <br><br>
- Please ensure that you have opened the
- <a class="underline" href='https://coolify.io/docs/knowledge-base/server/firewall' target='_blank'>required ports</a>,
- check the
- related <a class="underline" href='https://coolify.io/docs/knowledge-base/cloudflare/tunnels'
- target='_blank'>documentation</a> or get
- help on <a class="underline" href='https://coollabs.io/discord' target='_blank'>Discord</a>. </span>
- </x-slot:description>
- <x-slot:button-text @click="disableRealtime()">
- Acknowledge & Disable This Popup
- </x-slot:button-text>
- </x-popup>
+ @if (!isCloud())
+ <x-popup>
+ <x-slot:title>
+ <span class="font-bold text-left text-red-500">WARNING: </span>Realtime Error?!
+ </x-slot:title>
+ <x-slot:description>
+ <span>Coolify could not connect to its real-time service.<br>This will cause unusual problems on the
+ UI
+ if
+ not fixed! <br><br>
+ Please ensure that you have opened the
+ <a class="underline" href='https://coolify.io/docs/knowledge-base/server/firewall'
+ target='_blank'>required ports</a>,
+ check the
+ related <a class="underline" href='https://coolify.io/docs/knowledge-base/cloudflare/tunnels'
+ target='_blank'>documentation</a> or get
+ help on <a class="underline" href='https://coollabs.io/discord' target='_blank'>Discord</a>.
+ </span>
+ </x-slot:description>
+ <x-slot:button-text @click="disableRealtime()">
+ Acknowledge & Disable This Popup
+ </x-slot:button-text>
+ </x-popup>
+ @endif
</span>
@endauth
<span x-show="popups.sponsorship">