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:
Steven Nguyen 2025-05-23 17:39:54 -07:00
parent 341bcb5222
commit 295e2773f3
No known key found for this signature in database

View file

@ -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', '');