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.

Refactor isExperimentalEnabled function and remove its usage

Andras Bacsai23f79329641c
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php
index 35800911b8..cd0eb709a8 100644
--- a/bootstrap/helpers/shared.php
+++ b/bootstrap/helpers/shared.php
@@ -362,10 +362,6 @@ function isCloud(): bool
return ! config('coolify.self_hosted');
}
-function isExperimentalEnabled(): bool
-{
- return false;
-}
function translate_cron_expression($expression_to_validate): string
{
if (isset(VALID_CRON_STRINGS[$expression_to_validate])) {
diff --git a/resources/views/livewire/server/form.blade.php b/resources/views/livewire/server/form.blade.php
index f3293ea0b7..bfcd42d90c 100644
--- a/resources/views/livewire/server/form.blade.php
+++ b/resources/views/livewire/server/form.blade.php
@@ -159,7 +159,7 @@
</div>
</div>
@if (!$server->isSwarm() && !$server->isBuildServer())
- @if (isExperimentalEnabled())
+ @if (isDev())
<div class="flex gap-2 items-center pt-4 pb-2">
<h3>Sentinel</h3>
@if ($server->isSentinelEnabled())
@@ -181,7 +181,7 @@
<h3>Sentinel</h3>
<div>Sentinel is not available in this version (soon).</div>
@endif
- @if (isExperimentalEnabled())
+ @if (isDev())
<div class="flex flex-col gap-2">
<div class="w-64">
<x-forms.checkbox wire:model.live="server.settings.is_sentinel_enabled"