1
0
Fork 0
mirror of synced 2024-07-01 12:40:34 +12:00

fix(dart-env): adapt to review

This commit is contained in:
Torsten Dittmann 2021-01-21 14:13:22 +01:00
parent 607de4246b
commit 8e5d7e9e31
3 changed files with 5 additions and 3 deletions

View file

@ -1,7 +1,7 @@
<?php <?php
use Utopia\App; use Utopia\App;
$allowList = empty(App::getEnv('_APP_FUNCTIONS_ENV_ALLOWLIST', null)) ? false : \explode(',', App::getEnv('_APP_FUNCTIONS_ENV_ALLOWLIST', null)); $allowList = empty(App::getEnv('_APP_FUNCTIONS_ENVS', null)) ? false : \explode(',', App::getEnv('_APP_FUNCTIONS_ENVS', null));
/** /**
* List of Appwrite Cloud Functions supported environments * List of Appwrite Cloud Functions supported environments

View file

@ -354,7 +354,7 @@ return [
'question' => '', 'question' => '',
], ],
[ [
'name' => '_APP_FUNCTIONS_ENV_ALLOWLIST', 'name' => '_APP_FUNCTIONS_ENVS',
'description' => 'This option allows you to limit the available environments for cloud functions. This option is very useful for low-cost servers to safe disk space.\n\nTo enable/activate this option, pass a list of allowed environments separated by a comma.\n\nCurrently, supported environments are: ' . \implode(', ', \array_keys(Config::getParam('providers'))), 'description' => 'This option allows you to limit the available environments for cloud functions. This option is very useful for low-cost servers to safe disk space.\n\nTo enable/activate this option, pass a list of allowed environments separated by a comma.\n\nCurrently, supported environments are: ' . \implode(', ', \array_keys(Config::getParam('providers'))),
'introduction' => '0.7.0', 'introduction' => '0.7.0',
'default' => '', 'default' => '',

View file

@ -7,3 +7,5 @@ RUN apk add tar
RUN mkdir /usr/local/src RUN mkdir /usr/local/src
WORKDIR /usr/local/src/ WORKDIR /usr/local/src/
ENV PUB_CACHE=/usr/local/src/.appwrite