mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix response format; formatting
This commit is contained in:
1 parent
ea6765c68a
commit
93222bf3f9
3 files changed
+21
-8
No files matched your search
@@ -4,7 +4,7 @@
|
||||
* List of Appwrite Sites supported frameworks
|
||||
*/
|
||||
|
||||
const TEMPLATE_RUNTIMES = [
|
||||
const TEMPLATE_RUNTIMES = [
|
||||
'NODE' => [
|
||||
'name' => 'node',
|
||||
'versions' => ['22', '21.0', '20.0', '19.0', '18.0', '16.0', '14.5']
|
||||
@@ -39,11 +39,12 @@
|
||||
],
|
||||
];
|
||||
|
||||
function getVersions(array $versions, string $prefix) {
|
||||
function getVersions(array $versions, string $prefix)
|
||||
{
|
||||
return array_map(function ($version) use ($prefix) {
|
||||
return $prefix . '-' . $version;
|
||||
}, $versions);
|
||||
}
|
||||
}
|
||||
|
||||
return [
|
||||
'sveltekit' => [
|
||||
|
||||
@@ -23,7 +23,6 @@ use Utopia\Platform\Action;
|
||||
use Utopia\Platform\Scope\HTTP;
|
||||
use Utopia\Swoole\Request;
|
||||
use Utopia\System\System;
|
||||
use Utopia\Validator\ArrayList;
|
||||
use Utopia\Validator\Boolean;
|
||||
use Utopia\Validator\Text;
|
||||
use Utopia\Validator\WhiteList;
|
||||
|
||||
@@ -34,17 +34,30 @@ class Framework extends Model
|
||||
'default' => '',
|
||||
'example' => 'sveltekit.png',
|
||||
])
|
||||
->addRule('defaultRuntime', [
|
||||
->addRule('defaultServeRuntime', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'Default runtime version.',
|
||||
'default' => '',
|
||||
'example' => 'node-20.0',
|
||||
'example' => 'static-1',
|
||||
])
|
||||
->addRule('runtimes', [
|
||||
->addRule('serveRuntimes', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'List of supported runtime versions.',
|
||||
'default' => '',
|
||||
'example' => 'node-16.0',
|
||||
'example' => 'static-1',
|
||||
'array' => true,
|
||||
])
|
||||
->addRule('defaultBuildRuntime', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'Default runtime version.',
|
||||
'default' => '',
|
||||
'example' => 'node-22',
|
||||
])
|
||||
->addRule('buildRuntimes', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'List of supported runtime versions.',
|
||||
'default' => '',
|
||||
'example' => 'node-21.0',
|
||||
'array' => true,
|
||||
])
|
||||
;
|
||||
|
||||
Reference in new issue
Block a user