From d0d1ab03380bf0b2ccbadefbae845de1a72376f8 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Fri, 10 Jul 2026 16:54:46 +0530 Subject: [PATCH] fix: omit frameworks with no enabled build runtimes After filtering by _APP_SITES_RUNTIMES, drop frameworks whose runtime list is empty so the Console does not offer unusable options. Co-authored-by: Cursor --- .../Platform/Modules/Sites/Http/Frameworks/XList.php | 5 +++++ 1 file changed, 5 insertions(+) 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]); + } } }