Merge pull request #2868 from appwrite/fix-detect-framework-and-runtime-on-root-dir-change

fix(functions/sites): trigger runtime and framework detection on root dir change
This commit is contained in:
Harsh Mahajan authored and GitHub committed 2026-02-20 19:34:53 +05:30
commit 078e57f339
2 files changed
+12

No files matched your search

@@ -60,6 +60,12 @@
let detectingRuntime = true;
let prevRootDir = rootDir;
$: if (rootDir !== prevRootDir) {
prevRootDir = rootDir;
detectRuntime();
}
onMount(async () => {
installation.set(data.installation);
repository.set(data.repository);
@@ -50,6 +50,12 @@
let domainIsValid = true;
let isVariablesLoading = true;
let prevRootDir = rootDir;
$: if (rootDir !== prevRootDir) {
prevRootDir = rootDir;
detectFramework();
}
onMount(async () => {
installation.set(data.installation);
repository.set(data.repository);