From 4500349fda5cd5ede08a2cb157057677eb5a5fdf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Feb 2026 11:00:09 +0000 Subject: [PATCH] fix: use 'default' fallback for _APP_REGION in realtime.php Co-authored-by: abnegate <5857008+abnegate@users.noreply.github.com> --- app/realtime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/realtime.php b/app/realtime.php index 4c27420758..442ad7b4a7 100644 --- a/app/realtime.php +++ b/app/realtime.php @@ -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'); }