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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: handle edge case when build variables and env variables are in different format
Andras Bacsai8385b7dfe89a
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.phpindex 975edf9ca5..9ff05085a9 100644--- a/bootstrap/helpers/shared.php+++ b/bootstrap/helpers/shared.php@@ -3826,6 +3826,21 @@ function convertComposeEnvironmentToArray($environment){$convertedServiceVariables = collect([]);if (isAssociativeArray($environment)) {+ if ($environment instanceof Collection) {+ $changedEnvironment = collect([]);+ $environment->each(function ($value, $key) use ($changedEnvironment) {+ $parts = explode('=', $value, 2);+ if (count($parts) === 2) {+ $key = $parts[0];+ $realValue = $parts[1] ?? '';+ $changedEnvironment->put($key, $realValue);+ } else {+ $changedEnvironment->put($key, $value);+ }+ });++ return $changedEnvironment;+ }$convertedServiceVariables = $environment;} else {foreach ($environment as $value) {