diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Frameworks/XList.php b/src/Appwrite/Platform/Modules/Sites/Http/Frameworks/XList.php index bd51f8ba70..1be5199494 100644 --- a/src/Appwrite/Platform/Modules/Sites/Http/Frameworks/XList.php +++ b/src/Appwrite/Platform/Modules/Sites/Http/Frameworks/XList.php @@ -65,6 +65,11 @@ class XList extends Base $framework['runtimes'], fn ($runtime) => \in_array($runtime, $allowList, true) )); + + // Drop frameworks that have no enabled build runtimes left. + if (empty($frameworks[$key]['runtimes'])) { + unset($frameworks[$key]); + } } }