mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Add Vite framework
This commit is contained in:
@@ -82,7 +82,7 @@ _APP_EXECUTOR_SECRET=your-secret-key
|
||||
_APP_EXECUTOR_HOST=http://exc1/v1
|
||||
_APP_FUNCTIONS_RUNTIMES=php-8.0,node-18.0,python-3.9,ruby-3.1
|
||||
_APP_SITES_RUNTIMES=static-1,node-22,flutter-3.29
|
||||
_APP_SITES_FRAMEWORKS=sveltekit,nextjs,nuxt,astro,remix,flutter,other,react,vue,analog,angular
|
||||
_APP_SITES_FRAMEWORKS=sveltekit,nextjs,nuxt,astro,remix,flutter,other,react,vue,analog,angular,vite
|
||||
_APP_MAINTENANCE_INTERVAL=86400
|
||||
_APP_MAINTENANCE_DELAY=
|
||||
_APP_MAINTENANCE_RETENTION_CACHE=2592000
|
||||
|
||||
@@ -233,6 +233,21 @@ return [
|
||||
],
|
||||
],
|
||||
],
|
||||
'vite' => [
|
||||
'key' => 'vite',
|
||||
'name' => 'Vite',
|
||||
'buildRuntime' => 'node-22',
|
||||
'runtimes' => getVersions($templateRuntimes['NODE']['versions'], 'node'),
|
||||
'adapters' => [
|
||||
'static' => [
|
||||
'key' => 'static',
|
||||
'buildCommand' => 'npm run build',
|
||||
'installCommand' => 'npm install',
|
||||
'outputDirectory' => './dist',
|
||||
'startCommand' => 'sh helpers/server.sh',
|
||||
],
|
||||
]
|
||||
],
|
||||
'other' => [
|
||||
'key' => 'other',
|
||||
'name' => 'Other',
|
||||
|
||||
@@ -24723,6 +24723,7 @@
|
||||
"astro",
|
||||
"remix",
|
||||
"flutter",
|
||||
"vite",
|
||||
"other"
|
||||
],
|
||||
"x-enum-name": null,
|
||||
@@ -25352,6 +25353,7 @@
|
||||
"astro",
|
||||
"remix",
|
||||
"flutter",
|
||||
"vite",
|
||||
"other"
|
||||
],
|
||||
"x-enum-name": null,
|
||||
|
||||
@@ -16820,6 +16820,7 @@
|
||||
"astro",
|
||||
"remix",
|
||||
"flutter",
|
||||
"vite",
|
||||
"other"
|
||||
],
|
||||
"x-enum-name": null,
|
||||
@@ -17224,6 +17225,7 @@
|
||||
"astro",
|
||||
"remix",
|
||||
"flutter",
|
||||
"vite",
|
||||
"other"
|
||||
],
|
||||
"x-enum-name": null,
|
||||
|
||||
@@ -25226,6 +25226,7 @@
|
||||
"astro",
|
||||
"remix",
|
||||
"flutter",
|
||||
"vite",
|
||||
"other"
|
||||
],
|
||||
"x-enum-name": null,
|
||||
@@ -25869,6 +25870,7 @@
|
||||
"astro",
|
||||
"remix",
|
||||
"flutter",
|
||||
"vite",
|
||||
"other"
|
||||
],
|
||||
"x-enum-name": null,
|
||||
|
||||
@@ -17289,6 +17289,7 @@
|
||||
"astro",
|
||||
"remix",
|
||||
"flutter",
|
||||
"vite",
|
||||
"other"
|
||||
],
|
||||
"x-enum-name": null,
|
||||
@@ -17711,6 +17712,7 @@
|
||||
"astro",
|
||||
"remix",
|
||||
"flutter",
|
||||
"vite",
|
||||
"other"
|
||||
],
|
||||
"x-enum-name": null,
|
||||
|
||||
@@ -86,6 +86,15 @@ const TEMPLATE_FRAMEWORKS = [
|
||||
'adapter' => 'static',
|
||||
'fallbackFile' => 'index.html',
|
||||
],
|
||||
'VITE' => [
|
||||
'key' => 'vite',
|
||||
'name' => 'Vite',
|
||||
'installCommand' => 'npm install',
|
||||
'buildCommand' => 'npm run build',
|
||||
'buildRuntime' => 'node-22',
|
||||
'adapter' => 'static',
|
||||
'outputDirectory' => './dist',
|
||||
],
|
||||
'REACT' => [
|
||||
'key' => 'react',
|
||||
'name' => 'React',
|
||||
@@ -195,11 +204,8 @@ return [
|
||||
'screenshotDark' => $url . '/images/sites/templates/starter-for-js-dark.png',
|
||||
'screenshotLight' => $url . '/images/sites/templates/starter-for-js-light.png',
|
||||
'frameworks' => [
|
||||
getFramework('OTHER', [
|
||||
'installCommand' => 'npm install',
|
||||
'buildCommand' => 'npm run build',
|
||||
getFramework('VITE', [
|
||||
'providerRootDirectory' => './',
|
||||
'outputDirectory' => './dist',
|
||||
]),
|
||||
],
|
||||
'vcsProvider' => 'github',
|
||||
|
||||
Reference in New Issue
Block a user