mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Add variables suggestion
This commit is contained in:
@@ -33,6 +33,13 @@ class DetectionFramework extends Model
|
||||
'description' => 'Site Output Directory',
|
||||
'default' => '',
|
||||
'example' => 'dist',
|
||||
])
|
||||
->addRule('variables', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'Environment variables found in .env files',
|
||||
'default' => [],
|
||||
'array' => true,
|
||||
'example' => ['PORT', 'NODE_ENV'],
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,13 @@ class DetectionRuntime extends Model
|
||||
'description' => 'Function install and build commands',
|
||||
'default' => '',
|
||||
'example' => 'npm install && npm run build',
|
||||
])
|
||||
->addRule('variables', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'Environment variables found in .env files',
|
||||
'default' => [],
|
||||
'array' => true,
|
||||
'example' => ['PORT', 'NODE_ENV'],
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
@@ -53,6 +53,13 @@ class ProviderRepository extends Model
|
||||
'default' => APP_DATABASE_ATTRIBUTE_DATETIME,
|
||||
'example' => APP_DATABASE_ATTRIBUTE_DATETIME,
|
||||
'array' => false,
|
||||
])
|
||||
->addRule('variables', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'Environment variables found in .env files',
|
||||
'default' => [],
|
||||
'array' => true,
|
||||
'example' => ['PORT', 'NODE_ENV'],
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user