1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +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
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

View file

@ -354,7 +354,7 @@ return [
'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'))),
'introduction' => '0.7.0',
'default' => '',

View file

@ -6,4 +6,6 @@ RUN apk add tar
RUN mkdir /usr/local/src
WORKDIR /usr/local/src/
WORKDIR /usr/local/src/
ENV PUB_CACHE=/usr/local/src/.appwrite