1
0
Fork 0
mirror of synced 2024-06-03 11:24:48 +12:00
appwrite/app/config/runtimes-v2.php
2024-03-06 18:34:21 +01:00

17 lines
343 B
PHP

<?php
/**
* List of Appwrite Cloud Functions supported runtimes
*/
use Appwrite\Runtimes\Runtimes;
use Utopia\App;
$runtimes = new Runtimes('v2');
$allowList = empty(App::getEnv('_APP_FUNCTIONS_RUNTIMES')) ? [] : \explode(',', App::getEnv('_APP_FUNCTIONS_RUNTIMES'));
$runtimes = $runtimes->getAll(true, $allowList);
return $runtimes;