1
0
Fork 0
mirror of synced 2024-07-02 21:20:58 +12:00
appwrite/app/config/runtimes-v2.php
2023-09-04 19:53:25 +02:00

17 lines
343 B
PHP

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