mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Add template fallback file
This commit is contained in:
@@ -27,7 +27,8 @@ return [
|
||||
getFramework('SVELTEKIT', [
|
||||
'serveRuntime' => 'static-1',
|
||||
'installCommand' => 'npm install --force',
|
||||
'providerRootDirectory' => './'
|
||||
'providerRootDirectory' => './',
|
||||
'fallbackFile' => null
|
||||
])
|
||||
],
|
||||
'vcsProvider' => 'github',
|
||||
|
||||
@@ -37652,6 +37652,11 @@
|
||||
"type": "string",
|
||||
"description": "Runtime used during build step of template.",
|
||||
"x-example": "node-22"
|
||||
},
|
||||
"fallbackFile": {
|
||||
"type": "string",
|
||||
"description": "Fallback file for SPA. Only relevant for static serve runtime.",
|
||||
"x-example": "index.html"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -37662,7 +37667,8 @@
|
||||
"outputDirectory",
|
||||
"providerRootDirectory",
|
||||
"serveRuntime",
|
||||
"buildRuntime"
|
||||
"buildRuntime",
|
||||
"fallbackFile"
|
||||
]
|
||||
},
|
||||
"function": {
|
||||
|
||||
@@ -38208,6 +38208,11 @@
|
||||
"type": "string",
|
||||
"description": "Runtime used during build step of template.",
|
||||
"x-example": "node-22"
|
||||
},
|
||||
"fallbackFile": {
|
||||
"type": "string",
|
||||
"description": "Fallback file for SPA. Only relevant for static serve runtime.",
|
||||
"x-example": "index.html"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -38218,7 +38223,8 @@
|
||||
"outputDirectory",
|
||||
"providerRootDirectory",
|
||||
"serveRuntime",
|
||||
"buildRuntime"
|
||||
"buildRuntime",
|
||||
"fallbackFile"
|
||||
]
|
||||
},
|
||||
"function": {
|
||||
|
||||
@@ -58,6 +58,12 @@ class TemplateFramework extends Model
|
||||
'default' => '',
|
||||
'example' => 'node-22',
|
||||
])
|
||||
->addRule('fallbackFile', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'Fallback file for SPA. Only relevant for static serve runtime.',
|
||||
'default' => null,
|
||||
'example' => 'index.html',
|
||||
])
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user