Add other framework

This commit is contained in:
Matej Bačo
2024-12-02 15:05:26 +01:00
parent 563031f214
commit fdff1664ea
8 changed files with 48 additions and 32 deletions
+1 -1
View File
@@ -3442,7 +3442,7 @@ $projectCollections = array_merge([
'size' => 128,
'signed' => true,
'required' => false,
'default' => null,
'default' => '',
'array' => false,
'filters' => [],
],
+17 -1
View File
@@ -153,5 +153,21 @@ return [
'bundleCommand' => '',
],
],
]
],
'other' => [
'key' => 'other',
'name' => 'Other',
'buildRuntime' => 'node-22',
'runtimes' => getVersions($templateRuntimes['NODE']['versions'], 'node'),
'adapters' => [
'static' => [
'key' => 'static',
'buildCommand' => '',
'installCommand' => '',
'outputDirectory' => './',
'startCommand' => 'sh helpers/server.sh',
'bundleCommand' => '',
],
]
],
];
@@ -25318,7 +25318,8 @@
"remix",
"nuxt",
"nextjs",
"flutter"
"flutter",
"other"
],
"x-enum-name": null,
"x-enum-keys": []
@@ -25486,8 +25487,7 @@
"siteId",
"name",
"framework",
"buildRuntime",
"adapter"
"buildRuntime"
]
}
}
@@ -25927,7 +25927,8 @@
"remix",
"nuxt",
"nextjs",
"flutter"
"flutter",
"other"
],
"x-enum-name": null,
"x-enum-keys": []
@@ -26068,8 +26069,7 @@
},
"required": [
"name",
"framework",
"adapter"
"framework"
]
}
}
@@ -17134,7 +17134,8 @@
"remix",
"nuxt",
"nextjs",
"flutter"
"flutter",
"other"
],
"x-enum-name": null,
"x-enum-keys": []
@@ -17302,8 +17303,7 @@
"siteId",
"name",
"framework",
"buildRuntime",
"adapter"
"buildRuntime"
]
}
}
@@ -17508,7 +17508,8 @@
"remix",
"nuxt",
"nextjs",
"flutter"
"flutter",
"other"
],
"x-enum-name": null,
"x-enum-keys": []
@@ -17649,8 +17650,7 @@
},
"required": [
"name",
"framework",
"adapter"
"framework"
]
}
}
@@ -25795,7 +25795,8 @@
"remix",
"nuxt",
"nextjs",
"flutter"
"flutter",
"other"
],
"x-enum-name": null,
"x-enum-keys": []
@@ -25908,7 +25909,7 @@
"adapter": {
"type": "string",
"description": "Framework adapter. Usuallly allows: static, ssr",
"default": null,
"default": "",
"x-example": "<ADAPTER>"
},
"installationId": {
@@ -25982,8 +25983,7 @@
"siteId",
"name",
"framework",
"buildRuntime",
"adapter"
"buildRuntime"
]
}
}
@@ -26421,7 +26421,8 @@
"remix",
"nuxt",
"nextjs",
"flutter"
"flutter",
"other"
],
"x-enum-name": null,
"x-enum-keys": []
@@ -26528,7 +26529,7 @@
"adapter": {
"type": "string",
"description": "Framework adapter. Usuallly allows: static, ssr",
"default": null,
"default": "",
"x-example": "<ADAPTER>"
},
"fallbackFile": {
@@ -26576,8 +26577,7 @@
},
"required": [
"name",
"framework",
"adapter"
"framework"
]
}
}
+8 -8
View File
@@ -17579,7 +17579,8 @@
"remix",
"nuxt",
"nextjs",
"flutter"
"flutter",
"other"
],
"x-enum-name": null,
"x-enum-keys": []
@@ -17692,7 +17693,7 @@
"adapter": {
"type": "string",
"description": "Framework adapter. Usuallly allows: static, ssr",
"default": null,
"default": "",
"x-example": "<ADAPTER>"
},
"installationId": {
@@ -17766,8 +17767,7 @@
"siteId",
"name",
"framework",
"buildRuntime",
"adapter"
"buildRuntime"
]
}
}
@@ -17974,7 +17974,8 @@
"remix",
"nuxt",
"nextjs",
"flutter"
"flutter",
"other"
],
"x-enum-name": null,
"x-enum-keys": []
@@ -18081,7 +18082,7 @@
"adapter": {
"type": "string",
"description": "Framework adapter. Usuallly allows: static, ssr",
"default": null,
"default": "",
"x-example": "<ADAPTER>"
},
"fallbackFile": {
@@ -18129,8 +18130,7 @@
},
"required": [
"name",
"framework",
"adapter"
"framework"
]
}
}
@@ -66,7 +66,7 @@ class CreateSite extends Base
->param('outputDirectory', '', new Text(8192, 0), 'Output Directory for site.', true)
->param('subdomain', '', new CustomId(), 'Unique custom sub-domain. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can\'t start with a special char. Max length is 36 chars.', true)
->param('buildRuntime', '', new WhiteList(array_keys(Config::getParam('runtimes')), true), 'Runtime to use during build step.')
->param('adapter', '', new Text(8192, 0), 'Framework adapter. Usuallly allows: static, ssr')
->param('adapter', '', new Text(8192, 0), 'Framework adapter. Usuallly allows: static, ssr', true)
->param('installationId', '', new Text(128, 0), 'Appwrite Installation ID for VCS (Version Control System) deployment.', true)
->param('fallbackFile', '', new Text(255, 0), 'Fallback file for single page application sites.', true)
->param('providerRepositoryId', '', new Text(128, 0), 'Repository ID of the repo linked to the site.', true)
@@ -63,7 +63,7 @@ class UpdateSite extends Base
->param('buildCommand', '', new Text(8192, 0), 'Build Command.', true)
->param('outputDirectory', '', new Text(8192, 0), 'Output Directory for site.', true)
->param('buildRuntime', '', new WhiteList(array_keys(Config::getParam('runtimes')), true), 'Runtime to use during build step.', true)
->param('adapter', '', new Text(8192, 0), 'Framework adapter. Usuallly allows: static, ssr')
->param('adapter', '', new Text(8192, 0), 'Framework adapter. Usuallly allows: static, ssr', true)
->param('fallbackFile', '', new Text(255, 0), 'Fallback file for single page application sites.', true)
->param('installationId', '', new Text(128, 0), 'Appwrite Installation ID for VCS (Version Control System) deployment.', true)
->param('providerRepositoryId', '', new Text(128, 0), 'Repository ID of the repo linked to the site.', true)