1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00

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

@ -1 +1 @@
Subproject commit f0f0b050fc51871206a4bb729f1c11592f7e8c2f
Subproject commit 495a9c25302bb79156773ef0668b3eef07ce3dd1

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';