mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Merge pull request #3144 from appwrite/codex/fix-sites-fallback-placeholder
Fix Sites fallback file placeholder
This commit is contained in:
1 file changed
+1
-11
+1
-11
@@ -32,7 +32,7 @@
|
||||
let buildCommand = $state(site?.buildCommand);
|
||||
let startCommand = $state(site?.startCommand);
|
||||
let outputDirectory = $state(site?.outputDirectory);
|
||||
let fallback = $state(site?.fallbackFile);
|
||||
let fallback = $state(site?.fallbackFile ?? '');
|
||||
let adapter: Adapter = $state(site.adapter as Adapter);
|
||||
|
||||
let selectedFramework = $state(
|
||||
@@ -110,16 +110,6 @@
|
||||
lastFrameworkAdapterKey = `${selectedFramework.key}:${adapter ?? ''}`;
|
||||
});
|
||||
|
||||
$effect(() => {
|
||||
if (adapter === Adapter.Static) {
|
||||
if (!fallback) {
|
||||
fallback ||= selectedFramework.adapters.find(
|
||||
(a) => a.key === Adapter.Static
|
||||
).fallbackFile;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$effect(() => {
|
||||
if (selectedFramework) {
|
||||
if (!selectedFramework.adapters.some((a) => a.key === adapter)) {
|
||||
|
||||
Reference in new issue
Block a user