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
2026-02-20 19:34:53 +05:30
committed by GitHub
2 changed files with 12 additions and 0 deletions
@@ -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);