Fix wrong preview url hostname

This commit is contained in:
Matej Bačo
2023-08-20 12:26:23 +02:00
parent 60d24e0072
commit 4d84cb2e45
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -178,7 +178,9 @@ class Executor
array $headers,
string $runtimeEntrypoint = null,
) {
$headers['host'] = App::getEnv('_APP_DOMAIN', '');
if(empty($headers['host'])) {
$headers['host'] = App::getEnv('_APP_DOMAIN', '');
}
$runtimeId = "$projectId-$deploymentId";
$route = '/runtimes/' . $runtimeId . '/execution';