fix: shared env variable parsing

This commit is contained in:
Andras Bacsai 2024-03-20 16:41:10 +01:00
parent d9f1c2a406
commit 07c9db9b54
4 changed files with 7 additions and 7 deletions

View File

@ -1367,7 +1367,7 @@ private function generate_environment_variables($ports)
// Old environment variables are not escaped, because it could break the application
// as the application could expect the unescaped value.
if ($env->version === '4.0.0-beta.239') {
$real_value = $env->value;
$real_value = $env->real_value;
} else {
$real_value = escapeEnvVariables($env->real_value);
}
@ -1375,7 +1375,7 @@ private function generate_environment_variables($ports)
}
foreach ($this->application->nixpacks_environment_variables as $env) {
if ($env->version === '4.0.0-beta.239') {
$real_value = $env->value;
$real_value = $env->real_value;
} else {
$real_value = escapeEnvVariables($env->real_value);
}
@ -1384,7 +1384,7 @@ private function generate_environment_variables($ports)
} else {
foreach ($this->application->runtime_environment_variables_preview as $env) {
if ($env->version === '4.0.0-beta.239') {
$real_value = $env->value;
$real_value = $env->real_value;
} else {
$real_value = escapeEnvVariables($env->real_value);
}
@ -1392,7 +1392,7 @@ private function generate_environment_variables($ports)
}
foreach ($this->application->nixpacks_environment_variables_preview as $env) {
if ($env->version === '4.0.0-beta.239') {
$real_value = $env->value;
$real_value = $env->real_value;
} else {
$real_value = escapeEnvVariables($env->real_value);
}

View File

@ -7,7 +7,7 @@
// The release version of your application
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
'release' => '4.0.0-beta.240',
'release' => '4.0.0-beta.241',
// When left empty or `null` the Laravel environment will be used
'environment' => config('app.env'),

View File

@ -1,3 +1,3 @@
<?php
return '4.0.0-beta.240';
return '4.0.0-beta.241';

View File

@ -4,7 +4,7 @@
"version": "3.12.36"
},
"v4": {
"version": "4.0.0-beta.240"
"version": "4.0.0-beta.241"
}
}
}