From fcbb073bcc85f1e05a15feb24462fe9d1fa86741 Mon Sep 17 00:00:00 2001 From: fogelito Date: Wed, 17 Dec 2025 20:53:22 +0200 Subject: [PATCH] endpoint revert --- src/Appwrite/Platform/Workers/Migrations.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Migrations.php b/src/Appwrite/Platform/Workers/Migrations.php index 072f584460..e252b77a5f 100644 --- a/src/Appwrite/Platform/Workers/Migrations.php +++ b/src/Appwrite/Platform/Workers/Migrations.php @@ -155,11 +155,6 @@ class Migrations extends Action $database = null; $queries = []; - if (($credentials['endpoint'] ?? null) === 'http://localhost/v1') { - $protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') === 'disabled' ? 'http' : 'https'; - $credentials['endpoint'] = $protocol . '://' . $platform['apiHostname'] . '/v1'; - } - if ($source === Appwrite::getName() && $destination === DestinationCSV::getName()) { $dataSource = Appwrite::SOURCE_DATABASE; $database = $this->dbForProject; @@ -330,6 +325,9 @@ class Migrations extends Action $credentials['projectId'] = $credentials['projectId'] ?? $project->getId(); $credentials['apiKey'] = $credentials['apiKey'] ?? $tempAPIKey; + /** + * endpoint set + */ if (empty($credentials['endpoint'])) { $protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') === 'disabled' ? 'http' : 'https'; $credentials['endpoint'] = $protocol . '://' . $platform['apiHostname'] . '/v1';