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.

is_required is not required for shared envs

Andras Bacsai946ab81d87b9
diff --git a/app/Livewire/Project/Shared/EnvironmentVariable/Show.php b/app/Livewire/Project/Shared/EnvironmentVariable/Show.php
index e71cd9f42a..6294d97c6e 100644
--- a/app/Livewire/Project/Shared/EnvironmentVariable/Show.php
+++ b/app/Livewire/Project/Shared/EnvironmentVariable/Show.php
@@ -88,6 +88,9 @@ class Show extends Component
public function lock()
{
$this->env->is_shown_once = true;
+ if ($this->isSharedVariable) {
+ unset($this->env->is_required);
+ }
$this->serialize();
$this->env->save();
$this->checkEnvs();