From 6e6081f693352a8634e157b293bb2f873a14c0cc Mon Sep 17 00:00:00 2001 From: fogelito Date: Thu, 29 Jan 2026 17:33:37 +0200 Subject: [PATCH] set credentials --- src/Appwrite/Platform/Workers/Migrations.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Migrations.php b/src/Appwrite/Platform/Workers/Migrations.php index 66f39a4336..cef732b08c 100644 --- a/src/Appwrite/Platform/Workers/Migrations.php +++ b/src/Appwrite/Platform/Workers/Migrations.php @@ -332,8 +332,13 @@ class Migrations extends Action $transfer = $source = $destination = null; - //$protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') === 'disabled' ? 'http' : 'https'; - // $endpoint = $protocol . '://' . $platform['apiHostname'] . '/v1'; + + /** + * Old logic + * $protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') === 'disabled' ? 'http' : 'https'; + * $endpoint = $protocol . '://' . $platform['apiHostname'] . '/v1'; + */ + $endpoint = System::getEnv('_APP_MIGRATION_ENDPOINT'); try {