Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Commit

Permalink
[WEB-118] Use new versions static API at cdn-1.webcatalog.io (#1637)
Browse files Browse the repository at this point in the history
  • Loading branch information
quanglam2807 authored Feb 28, 2022
1 parent f03d98d commit 1669f9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions main-src/libs/app-management/prepare-engine-async/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ const getTagNameAsync = () => Promise.resolve()
let stableVersion;
let prereleaseVersion;
const p = [
customizedFetch('https://webcatalog.io/webcatalog/juli/releases/latest.json')
customizedFetch('https://cdn-1.webcatalog.io/neutron/versions/stable.json')
.then((res) => res.json())
.then((data) => { stableVersion = data.version; }),
customizedFetch('https://webcatalog.io/webcatalog/juli/releases/prerelease.json')
customizedFetch('https://cdn-1.webcatalog.io/neutron/versions/beta.json')
.then((res) => res.json())
.then((data) => { prereleaseVersion = data.version; }),
];
Expand All @@ -51,7 +51,7 @@ const getTagNameAsync = () => Promise.resolve()
.then((version) => `v${version}`);
}

return customizedFetch('https://webcatalog.io/webcatalog/juli/releases/latest.json')
return customizedFetch('https://cdn-1.webcatalog.io/neutron/versions/stable.json')
.then((res) => res.json())
.then((data) => `v${data.version}`);
});
Expand Down
6 changes: 3 additions & 3 deletions src/state/general/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ export const fetchLatestTemplateVersionAsync = () => (dispatch, getState) => {
let stableVersion;
let prereleaseVersion;
const p = [
window.fetch('https://webcatalog.io/webcatalog/juli/releases/latest.json')
window.fetch('https://cdn-1.webcatalog.io/neutron/versions/stable.json')
.then((res) => res.json())
.then((data) => { stableVersion = data.version; }),
window.fetch('https://webcatalog.io/webcatalog/juli/releases/prerelease.json')
window.fetch('https://cdn-1.webcatalog.io/neutron/versions/beta.json')
.then((res) => res.json())
.then((data) => { prereleaseVersion = data.version; }),
];
Expand All @@ -81,7 +81,7 @@ export const fetchLatestTemplateVersionAsync = () => (dispatch, getState) => {
});
}

return window.fetch('https://webcatalog.io/webcatalog/juli/releases/latest.json')
return window.fetch('https://cdn-1.webcatalog.io/neutron/versions/stable.json')
.then((res) => res.json())
.then((data) => data.version);
})
Expand Down

0 comments on commit 1669f9d

Please sign in to comment.