From 4d84cb2e4561b6acfa3f76f86ee65e49f868c94b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Sun, 20 Aug 2023 12:26:23 +0200 Subject: [PATCH] Fix wrong preview url hostname --- app/console | 2 +- src/Executor/Executor.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/console b/app/console index f0f0b050fc..495a9c2530 160000 --- a/app/console +++ b/app/console @@ -1 +1 @@ -Subproject commit f0f0b050fc51871206a4bb729f1c11592f7e8c2f +Subproject commit 495a9c25302bb79156773ef0668b3eef07ce3dd1 diff --git a/src/Executor/Executor.php b/src/Executor/Executor.php index 4ee1625f8a..0170031f29 100644 --- a/src/Executor/Executor.php +++ b/src/Executor/Executor.php @@ -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';