Skip to content

Commit 078e57f

Browse files
authored
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
2 parents 166f33d + d5221ca commit 078e57f

File tree

2 files changed

+12
-0
lines changed
  • src/routes/(console)/project-[region]-[project]
    • functions/create-function/repository-[repository]
    • sites/create-site/repositories/repository-[repository]

2 files changed

+12
-0
lines changed

src/routes/(console)/project-[region]-[project]/functions/create-function/repository-[repository]/+page.svelte

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@
6060
6161
let detectingRuntime = true;
6262
63+
let prevRootDir = rootDir;
64+
$: if (rootDir !== prevRootDir) {
65+
prevRootDir = rootDir;
66+
detectRuntime();
67+
}
68+
6369
onMount(async () => {
6470
installation.set(data.installation);
6571
repository.set(data.repository);

src/routes/(console)/project-[region]-[project]/sites/create-site/repositories/repository-[repository]/+page.svelte

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@
5050
let domainIsValid = true;
5151
let isVariablesLoading = true;
5252
53+
let prevRootDir = rootDir;
54+
$: if (rootDir !== prevRootDir) {
55+
prevRootDir = rootDir;
56+
detectFramework();
57+
}
58+
5359
onMount(async () => {
5460
installation.set(data.installation);
5561
repository.set(data.repository);

0 commit comments

Comments
 (0)