This commit is contained in:
shimon 2025-02-19 13:52:14 +02:00
parent 39e5c5e734
commit 197e32f128

View file

@ -527,6 +527,9 @@ App::init()
*/
$host = $request->getHostname() ?? '';
$mainDomain = System::getEnv('_APP_DOMAIN', '');
var_dump('Called');
// Only run Router when external domain
if ($host !== $mainDomain || !empty($previewHostname)) {
if (router($utopia, $dbForPlatform, $getProjectDB, $swooleRequest, $request, $response, $queueForEvents, $queueForStatsUsage, $queueForFunctions, $geodb, $isResourceBlocked, $previewHostname)) {