From 40dede6503d5686fe479d045688caafe5d8cc697 Mon Sep 17 00:00:00 2001 From: fogelito Date: Sun, 1 Feb 2026 14:54:42 +0200 Subject: [PATCH] Use apiHostname --- src/Appwrite/Platform/Workers/Migrations.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Migrations.php b/src/Appwrite/Platform/Workers/Migrations.php index b27c8e4f56..acec464974 100644 --- a/src/Appwrite/Platform/Workers/Migrations.php +++ b/src/Appwrite/Platform/Workers/Migrations.php @@ -338,6 +338,9 @@ class Migrations extends Action throw new \Exception('_APP_MIGRATION_ENDPOINT env is empty'); } + $protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') === 'disabled' ? 'http' : 'https'; + $endpoint = $protocol . '://' . $platform['apiHostname'] . '/v1'; + try { $credentials = $migration->getAttribute('credentials', []); @@ -360,8 +363,6 @@ class Migrations extends Action $migration->setAttribute('credentials', $credentials); - var_dump($credentials); - $migration->setAttribute('stage', 'processing'); $migration->setAttribute('status', 'processing'); $this->updateMigrationDocument($migration, $project, $queueForRealtime);