Fixing a minor issue with self hosting deployment/app creation.
This commit is contained in:
parent
1d48d4ec50
commit
182d720051
|
@ -94,6 +94,7 @@ exports.getDeployedApps = async () => {
|
|||
}
|
||||
const workerUrl = !env.CLOUD ? await exports.getWorkerUrl() : env.WORKER_URL
|
||||
const hostingKey = !env.CLOUD ? hostingInfo.selfHostKey : env.HOSTING_KEY
|
||||
try {
|
||||
const response = await fetch(`${workerUrl}/api/apps`, {
|
||||
method: "GET",
|
||||
headers: {
|
||||
|
@ -107,4 +108,8 @@ exports.getDeployedApps = async () => {
|
|||
}
|
||||
}
|
||||
return json
|
||||
} catch (err) {
|
||||
// error, cannot determine deployed apps, don't stop app creation - sort this later
|
||||
return {}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue