1
0
Fork 0
mirror of synced 2024-09-15 00:48:25 +12:00
appwrite/app/config/runtimes.php
2021-09-01 10:48:56 +01:00

26 lines
No EOL
744 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]);
$deno = new Runtime('deno', 'Deno');
$deno->addVersion('NG-Latest', 'deno:latest-alpine-nx', 'deno-runtime', [System::X86, System::PPC, System::ARM]);
$runtimes->add($node);
$runtimes->add($deno);
$runtimes = $runtimes->getAll(true, $allowList);
return $runtimes;