» Download Consul Tools @@ -43,16 +43,8 @@ export default function DownloadsPage({ downloadData }) { export async function getStaticProps() { return fetch(`https://releases.hashicorp.com/consul/${VERSION}/index.json`) - .then((r) => r.json()) - .then((r) => { - // TODO: restructure product-downloader to run this logic internally - return r.builds.reduce((acc, build) => { - if (!acc[build.os]) acc[build.os] = {} - acc[build.os][build.arch] = build.url - return acc - }, {}) - }) - .then((r) => ({ props: { downloadData: r } })) + .then((res) => res.json()) + .then((releaseData) => ({ props: { releaseData } })) .catch(() => { throw new Error( `-------------------------------------------------------- diff --git a/website/pages/style.css b/website/pages/style.css index f92b48c1e0..33e38f900f 100644 --- a/website/pages/style.css +++ b/website/pages/style.css @@ -40,7 +40,6 @@ @import '../components/basic-hero/style.css'; @import '../components/enterprise-comparison/style.css'; @import '../components/footer/style.css'; -@import '../components/tabs/style.css'; @import '../components/learn-callout/style.css'; @import '../components/case-study-carousel/style.css';