1
0
Fork 0
mirror of synced 2024-06-29 11:40:45 +12:00
appwrite/app/config/runtimes.php

15 lines
331 B
PHP
Raw Normal View History

2021-04-21 23:02:54 +12:00
<?php
use Utopia\App;
use Appwrite\Runtimes\Runtimes;
/**
* List of Appwrite Cloud Functions supported runtimes
*/
2021-04-22 21:26:10 +12:00
$runtimes = new Runtimes();
2021-04-21 23:02:54 +12:00
2021-04-23 20:40:45 +12:00
$allowList = empty(App::getEnv('_APP_FUNCTIONS_ENVS')) ? [] : \explode(',', App::getEnv('_APP_FUNCTIONS_ENVS'));
2021-04-21 23:02:54 +12:00
2021-04-23 20:40:45 +12:00
$runtimes = $runtimes->getAll(filter: $allowList);
2021-04-21 23:02:54 +12:00
return $runtimes;