fix: Always use a buildpack
This commit is contained in:
parent
4e2026aa2d
commit
b0b1ee0c60
@ -105,6 +105,8 @@
|
|||||||
foundConfig = findBuildPack('static', packageManager);
|
foundConfig = findBuildPack('static', packageManager);
|
||||||
} else if (indexPHP) {
|
} else if (indexPHP) {
|
||||||
foundConfig = findBuildPack('php');
|
foundConfig = findBuildPack('php');
|
||||||
|
} else {
|
||||||
|
foundConfig = findBuildPack('node', packageManager);
|
||||||
}
|
}
|
||||||
} else if (type === 'github') {
|
} else if (type === 'github') {
|
||||||
const files = await get(`${apiUrl}/repos/${repository}/contents?ref=${branch}`, {
|
const files = await get(`${apiUrl}/repos/${repository}/contents?ref=${branch}`, {
|
||||||
@ -146,6 +148,8 @@
|
|||||||
foundConfig = findBuildPack('static', packageManager);
|
foundConfig = findBuildPack('static', packageManager);
|
||||||
} else if (indexPHP) {
|
} else if (indexPHP) {
|
||||||
foundConfig = findBuildPack('php');
|
foundConfig = findBuildPack('php');
|
||||||
|
} else {
|
||||||
|
foundConfig = findBuildPack('node', packageManager);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@ -183,10 +187,11 @@
|
|||||||
browser && window.location.reload();
|
browser && window.location.reload();
|
||||||
}
|
}
|
||||||
return errorNotification(error);
|
return errorNotification(error);
|
||||||
}
|
} finally {
|
||||||
if (!foundConfig) foundConfig = findBuildPack('node', packageManager);
|
if (!foundConfig) foundConfig = findBuildPack('node', packageManager);
|
||||||
scanning = false;
|
scanning = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
await scanRepository();
|
await scanRepository();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user