2021-04-21 23:02:54 +12:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* List of Appwrite Cloud Functions supported runtimes
|
|
|
|
*/
|
2022-05-24 02:54:50 +12:00
|
|
|
|
2022-05-31 05:41:25 +12:00
|
|
|
use Appwrite\Runtimes\Runtimes;
|
2023-08-24 05:12:43 +12:00
|
|
|
use Utopia\App;
|
2022-05-31 05:41:25 +12:00
|
|
|
|
2022-08-17 02:49:08 +12:00
|
|
|
$runtimes = new Runtimes('v2');
|
2021-04-21 23:02:54 +12:00
|
|
|
|
2021-04-30 03:08:59 +12:00
|
|
|
$allowList = empty(App::getEnv('_APP_FUNCTIONS_RUNTIMES')) ? [] : \explode(',', App::getEnv('_APP_FUNCTIONS_RUNTIMES'));
|
2021-04-21 23:02:54 +12:00
|
|
|
|
2021-05-19 07:05:44 +12:00
|
|
|
$runtimes = $runtimes->getAll(true, $allowList);
|
2021-04-21 23:02:54 +12:00
|
|
|
|
2022-05-24 02:54:50 +12:00
|
|
|
return $runtimes;
|