mirror of
https://github.com/ershisan99/coolify.git
synced 2026-01-08 20:52:20 +00:00
fix: random generated uuid will be full length (not 7 characters)
This commit is contained in:
@@ -44,7 +44,7 @@ class PreviewsCompose extends Component
|
||||
$template = $this->preview->application->preview_url_template;
|
||||
$host = $url->getHost();
|
||||
$schema = $url->getScheme();
|
||||
$random = new Cuid2(7);
|
||||
$random = new Cuid2();
|
||||
$preview_fqdn = str_replace('{{random}}', $random, $template);
|
||||
$preview_fqdn = str_replace('{{domain}}', $host, $preview_fqdn);
|
||||
$preview_fqdn = str_replace('{{pr_id}}', $this->preview->pull_request_id, $preview_fqdn);
|
||||
|
||||
Reference in New Issue
Block a user