17 lines
548 B
React
Raw Normal View History

import VERSION from 'data/version'
import { productSlug } from 'data/metadata'
import ProductDownloadsPage from '@hashicorp/react-product-downloads-page'
import { generateStaticProps } from '@hashicorp/react-product-downloads-page/server'
import baseProps from 'components/downloads-props'
2020-04-06 16:27:35 -04:00
export default function DownloadsPage(staticProps) {
return <ProductDownloadsPage {...baseProps()} {...staticProps} />
2020-04-06 16:27:35 -04:00
}
export async function getStaticProps() {
return generateStaticProps({
product: productSlug,
latestVersion: VERSION,
})
2020-04-06 16:27:35 -04:00
}