fix: PR deployments use the first fqdn as base

This commit is contained in:
Andras Bacsai committed 2023-10-05 13:35:16 +02:00
1 parent 0e583334e7
commit 76b8d048d4
2 files changed
+3 -1

No files matched your search

@@ -29,7 +29,8 @@ class Form extends Component
public function generate_real_url()
{
if (data_get($this->application, 'fqdn')) {
$url = Url::fromString($this->application->fqdn);
$firstFqdn = Str::of($this->application->fqdn)->before(',');
$url = Url::fromString($firstFqdn);
$host = $url->getHost();
$this->preview_url_template = Str::of($this->application->preview_url_template)->replace('{{domain}}', $host);
}