mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Add variables suggestion
This commit is contained in:
1 parent
0bf8cead51
commit
c784cf950b
5 files changed
+157
-67
No files matched your search
@@ -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