import VERSION from '../../data/version.js'
import ProductDownloader from '@hashicorp/react-product-downloader'
import Head from 'next/head'
import HashiHead from '@hashicorp/react-head'
export default function DownloadsPage({ releaseData }) {
return (
» Download Consul Tools
Note for ARM users:
- Use Armelv5 for all 32-bit armel systems
- Use Armhfv6 for all armhf systems with v6+ architecture
- Use Arm64 for all v8 64-bit architectures
The following commands can help determine the right version for your
system:
$ uname -m
$ readelf -a /proc/self/exe | grep -q -c Tag_ABI_VFP_args && echo
"armhf" || echo "armel"
)
}
export async function getStaticProps() {
return fetch(`https://releases.hashicorp.com/consul/${VERSION}/index.json`)
.then((res) => res.json())
.then((releaseData) => ({ props: { releaseData } }))
.catch(() => {
throw new Error(
`--------------------------------------------------------
Unable to resolve version ${VERSION} on releases.hashicorp.com from link
. Usually this
means that the specified version has not yet been released. The downloads page
version can only be updated after the new version has been released, to ensure
that it works for all users.
----------------------------------------------------------`
)
})
}