fix(env): only show nixpacks plan variables section in dev
This commit is contained in:
parent
3ff2743e01
commit
aeb9f3c852
1 changed files with 8 additions and 1 deletions
|
|
@ -2273,7 +2273,14 @@ private function generate_nixpacks_confs()
|
|||
}
|
||||
$this->nixpacks_plan = json_encode($parsed, JSON_PRETTY_PRINT);
|
||||
$this->nixpacks_plan_json = collect($parsed);
|
||||
$this->application_deployment_queue->addLogEntry("Final Nixpacks plan: {$this->nixpacks_plan}", hidden: true);
|
||||
|
||||
if (isDev()) {
|
||||
$this->application_deployment_queue->addLogEntry("Final Nixpacks plan: {$this->nixpacks_plan}", hidden: true);
|
||||
} else {
|
||||
$parsedForLog = $parsed;
|
||||
unset($parsedForLog['variables']); // remove variables section to avoid exposing ENVs in production logs
|
||||
$this->application_deployment_queue->addLogEntry('Final Nixpacks plan: '.json_encode($parsedForLog, JSON_PRETTY_PRINT), hidden: true);
|
||||
}
|
||||
if ($this->nixpacks_type === 'rust') {
|
||||
// temporary: disable healthcheck for rust because the start phase does not have curl/wget
|
||||
$this->application->health_check_enabled = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue