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 function and configuration names for experimental features

Andras Bacsaib1d2914c08e5
diff --git a/app/Actions/Server/StartSentinel.php b/app/Actions/Server/StartSentinel.php
index ad5d4cdb2b..a8ef8b1fe4 100644
--- a/app/Actions/Server/StartSentinel.php
+++ b/app/Actions/Server/StartSentinel.php
@@ -12,7 +12,7 @@ class StartSentinel
public function handle(Server $server, bool $restart = false)
{
// TODO: Sentinel is not available in this version (soon).
- if (! isExperimentalEnabled()) {
+ if (! isExperimentalFeaturesEnabled()) {
return;
}
$version = get_latest_sentinel_version();
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php
index 99b7b4c6f5..a92b682d7b 100644
--- a/bootstrap/helpers/shared.php
+++ b/bootstrap/helpers/shared.php
@@ -362,9 +362,9 @@ function isCloud(): bool
return ! config('coolify.self_hosted');
}
-function isExperimentalEnabled(): bool
+function isExperimentalFeaturesEnabled(): bool
{
- return config('coolify.is_experimental_enabled');
+ return config('coolify.is_experimental_features_enabled');
}
function translate_cron_expression($expression_to_validate): string
{
diff --git a/config/coolify.php b/config/coolify.php
index 0a93d86ea9..e81e5ebabe 100644
--- a/config/coolify.php
+++ b/config/coolify.php
@@ -13,5 +13,5 @@ return [
'helper_image' => env('HELPER_IMAGE', 'ghcr.io/coollabsio/coolify-helper'),
'is_horizon_enabled' => env('HORIZON_ENABLED', true),
'is_scheduler_enabled' => env('SCHEDULER_ENABLED', true),
- 'is_experimental_enabled' => env('EXPERIMENTAL_ENABLED', false),
+ 'is_experimental_features_enabled' => env('EXPERIMENTAL_FEATURES', false),
];
diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml
index b15a109c3b..da300fccc2 100644
--- a/docker-compose.prod.yml
+++ b/docker-compose.prod.yml
@@ -73,6 +73,7 @@ services:
- STRIPE_PRICE_ID_ULTIMATE_MONTHLY_OLD
- STRIPE_PRICE_ID_ULTIMATE_YEARLY_OLD
- STRIPE_EXCLUDED_PLANS
+ - EXPERIMENTAL_FEATURES
ports:
- "${APP_PORT:-8000}:80"
expose:
diff --git a/resources/views/livewire/server/form.blade.php b/resources/views/livewire/server/form.blade.php
index f3293ea0b7..3f33611249 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 (isExperimentalFeaturesEnabled())
<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 (isExperimentalFeaturesEnabled())
<div class="flex flex-col gap-2">
<div class="w-64">
<x-forms.checkbox wire:model.live="server.settings.is_sentinel_enabled"