1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00
appwrite/app/config/runtimes.php
Bradley Schofield 48d57aa38e aaaaa
2021-08-27 10:21:28 +01:00

22 lines
No EOL
569 B
PHP

<?php
use Utopia\App;
use Appwrite\Runtimes\Runtimes;
use Appwrite\Runtimes\Runtime;
use Utopia\System\System;
/**
* List of Appwrite Cloud Functions supported runtimes
*/
$runtimes = new Runtimes();
$allowList = empty(App::getEnv('_APP_FUNCTIONS_RUNTIMES')) ? [] : \explode(',', App::getEnv('_APP_FUNCTIONS_RUNTIMES'));
$node = new Runtime('node', 'Node.js');
$node->addVersion('NG-Latest', 'node:16-alpine-nx', 'node-runtime', [System::X86, System::PPC, System::ARM]);
$runtimes->add($node);
$runtimes = $runtimes->getAll(true, $allowList);
return $runtimes;