mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
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:
+6
@@ -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);
|
||||
|
||||
+6
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user