fix: use 'default' fallback for _APP_REGION in realtime.php

Co-authored-by: abnegate <5857008+abnegate@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-26 11:00:09 +00:00
co-authored by abnegate
parent 611495ec28
commit 4500349fda
+1 -1
View File
@@ -592,7 +592,7 @@ $server->onOpen(function (int $connection, SwooleRequest $request) use ($server,
}
$projectRegion = $project->getAttribute('region', '');
$currentRegion = System::getEnv('_APP_REGION', '');
$currentRegion = System::getEnv('_APP_REGION', 'default');
if (!empty($projectRegion) && $projectRegion !== $currentRegion) {
throw new Exception(Exception::GENERAL_ACCESS_FORBIDDEN, 'Project is not accessible in this region. Please make sure you are using the correct endpoint');
}