2020-01-18 00:18:09 +00:00
import './style.css'
2020-05-21 17:18:17 +00:00
import '@hashicorp/nextjs-scripts/lib/nprogress/style.css'
2020-01-18 00:18:09 +00:00
import Router from 'next/router'
2020-03-30 17:30:56 +00:00
import Head from 'next/head'
2020-05-21 17:18:17 +00:00
import { ErrorBoundary } from '@hashicorp/nextjs-scripts/lib/bugsnag'
import createConsentManager from '@hashicorp/nextjs-scripts/lib/consent-manager'
import NProgress from '@hashicorp/nextjs-scripts/lib/nprogress'
import useAnchorLinkAnalytics from '@hashicorp/nextjs-scripts/lib/anchor-link-analytics'
2020-03-30 17:30:56 +00:00
import HashiHead from '@hashicorp/react-head'
2020-07-02 18:24:34 +00:00
import ProductSubnav from 'components/subnav'
2020-10-09 16:15:38 +00:00
import HashiStackMenu from '@hashicorp/react-hashi-stack-menu'
2020-07-02 18:24:34 +00:00
import Footer from 'components/footer'
2020-01-18 00:18:09 +00:00
import Error from './_error'
2021-01-11 16:17:03 +00:00
import AlertBanner from '@hashicorp/react-alert-banner'
import alertBannerData , { ALERT _BANNER _ACTIVE } from '../data/alert-banner'
2020-01-18 00:18:09 +00:00
2020-05-21 17:18:17 +00:00
NProgress ( { Router } )
const { ConsentManager , openConsentManager } = createConsentManager ( {
preset : 'oss' ,
2020-01-18 00:18:09 +00:00
} )
2020-12-17 21:53:33 +00:00
export default function App ( { Component , pageProps } ) {
2020-05-21 17:18:17 +00:00
useAnchorLinkAnalytics ( )
2020-01-18 00:18:09 +00:00
2020-05-21 17:18:17 +00:00
return (
< ErrorBoundary FallbackComponent = { Error } >
< HashiHead
is = { Head }
title = "Vault by HashiCorp"
siteName = "Vault by HashiCorp"
description = "Vault secures, stores, and tightly controls access to tokens, passwords, certificates, API keys, and other secrets in modern computing. Vault handles leasing, key revocation, key rolling, auditing, and provides secrets as a service through a unified API."
image = "https://www.vaultproject.io/img/og-image.png"
icon = { [
{
href :
2020-08-11 17:56:25 +00:00
'https://www.datocms-assets.com/2885/1597163356-vault-favicon.png?h=16&w=16' ,
2020-05-21 17:18:17 +00:00
type : 'image/png' ,
sizes : '16x16' ,
} ,
{
href :
2020-08-11 17:56:25 +00:00
'https://www.datocms-assets.com/2885/1597163356-vault-favicon.png?h=32&w=32' ,
2020-05-21 17:18:17 +00:00
type : 'image/png' ,
sizes : '32x32' ,
} ,
{
href :
2020-08-11 17:56:25 +00:00
'https://www.datocms-assets.com/2885/1597163356-vault-favicon.png?h=96&w=96' ,
2020-05-21 17:18:17 +00:00
type : 'image/png' ,
sizes : '96x96' ,
} ,
{
href :
2020-08-11 17:56:25 +00:00
'https://www.datocms-assets.com/2885/1597163356-vault-favicon.png?h=192&w=192' ,
2020-05-21 17:18:17 +00:00
type : 'image/png' ,
sizes : '192x192' ,
} ,
] }
/ >
2021-01-11 16:17:03 +00:00
{ ALERT _BANNER _ACTIVE && (
2021-05-03 22:01:29 +00:00
< AlertBanner { ... alertBannerData } product = "vault" / >
2021-01-11 16:17:03 +00:00
) }
2020-10-09 16:15:38 +00:00
< HashiStackMenu / >
2020-05-21 17:18:17 +00:00
< ProductSubnav / >
< Component { ... pageProps } / >
< Footer openConsentManager = { openConsentManager } / >
< ConsentManager / >
< / E r r o r B o u n d a r y >
)
}