From 295e2773f33d4d13de2dde42aee24a8906c2975f Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Fri, 23 May 2025 17:39:54 -0700 Subject: [PATCH] fix(migration): _APP_DEFAULT_REGION is not a valid env var Across the rest of the codebase, we use _APP_REGION with 'default' as the fallback value. This commit updates the migration to do the same. --- src/Appwrite/Migration/Version/V22.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Migration/Version/V22.php b/src/Appwrite/Migration/Version/V22.php index a10017c99f..2a6a64ed48 100644 --- a/src/Appwrite/Migration/Version/V22.php +++ b/src/Appwrite/Migration/Version/V22.php @@ -353,11 +353,11 @@ class V22 extends Migration if ($project->isEmpty()) { Console::warning("Project \"{$document->getAttribute('projectId')}\" not found for rule \"{$document->getId()}\""); - $document->setAttribute('region', System::getEnv('_APP_DEFAULT_REGION')); + $document->setAttribute('region', System::getEnv('_APP_REGION', 'default')); break; } - $document->setAttribute('region', $project->getAttribute('region', System::getEnv('_APP_DEFAULT_REGION'))); + $document->setAttribute('region', $project->getAttribute('region', System::getEnv('_APP_REGION', 'default'))); $domain = $document->getAttribute('domain', ''); $functionsDomain = System::getEnv('_APP_DOMAIN_FUNCTIONS', '');