mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
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.
This commit is contained in:
parent
341bcb5222
commit
295e2773f3
1 changed files with 2 additions and 2 deletions
|
|
@ -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', '');
|
||||
|
|
|
|||
Loading…
Reference in a new issue