Fix site specification SDK package#3091
Conversation
Console (appwrite/console)Project ID: Tip Custom domains work with both CNAME for subdomains and NS records for apex domains |
Greptile SummaryThis PR updates the
Confidence Score: 4/5Safe to merge after addressing the missing empty-list guard in the functions page load. The sites path received a defensive guard that prevents the current spec from being cleared when the enabled list is empty, but the equivalent functions path was not updated the same way. In self-hosted mode the layout always resolves to an empty spec list, so on every function settings page load fn.buildSpecification and fn.runtimeSpecification are overwritten to undefined. src/routes/(console)/project-[region]-[project]/functions/function-[function]/settings/+page.ts — the fallback guard is missing for both build and runtime specifications. Important Files Changed
Reviews (4): Last reviewed commit: "fix: pass specification type to SDK" | Re-trigger Greptile |

What
@appwrite.io/consoleto the SDK artifact from16caf4elistSpecifications({ type: "builds" })for build specification optionslistSpecifications({ type: "runtimes" })for runtime specification optionsenabledForBuilds;enablednow applies to the requested specification typeTesting
bun run checkbun run lint