feat(compose-preview): populate fqdn from docker_compose_domains (#8963)

This commit is contained in:
Andras Bacsai
2026-03-13 17:02:26 +01:00
committed by GitHub
2 changed files with 87 additions and 0 deletions
+10
View File
@@ -166,6 +166,16 @@ class ApplicationPreview extends BaseModel
}
$this->docker_compose_domains = json_encode($docker_compose_domains);
// Populate fqdn from generated domains so webhook notifications can read it
$allDomains = collect($docker_compose_domains)
->pluck('domain')
->filter(fn ($d) => ! empty($d))
->flatMap(fn ($d) => explode(',', $d))
->implode(',');
$this->fqdn = ! empty($allDomains) ? $allDomains : null;
$this->save();
}
}