handle missing commons

This commit is contained in:
Damodar Lohani
2025-01-27 02:16:52 +00:00
parent e2b80e8414
commit e5c4481ae8
2 changed files with 5 additions and 2 deletions
+5
View File
@@ -1,5 +1,7 @@
<?php
use Utopia\App;
/**
* App init
*
@@ -1137,3 +1139,6 @@ function getDevice($root): Device
}
}
}
/** App mode is required by Workers and CLIs */
App::setMode(System::getEnv('_APP_ENV', App::MODE_TYPE_PRODUCTION));
-2
View File
@@ -45,8 +45,6 @@ use Utopia\System\System;
use Utopia\Validator\Hostname;
use Utopia\VCS\Adapter\Git\GitHub as VcsGitHub;
App::setMode(System::getEnv('_APP_ENV', App::MODE_TYPE_PRODUCTION));
if (!App::isProduction()) {
// Allow specific domains to skip public domain validation in dev environment
// Useful for existing tests involving webhooks