mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
handle missing commons
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user