docs: Add @vercel/analytics

This commit is contained in:
Marc Rousavy 2023-03-07 11:53:32 +01:00
parent 73c5d675f2
commit 35c779b1ad
3 changed files with 9 additions and 0 deletions

View File

@ -17,6 +17,7 @@
"@docusaurus/plugin-sitemap": "^2.3.1",
"@docusaurus/preset-classic": "^2.3.1",
"@mdx-js/react": "^1.6.22",
"@vercel/analytics": "^0.1.11",
"clsx": "^1.2.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"

View File

@ -5,6 +5,7 @@ import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import useBaseUrl from '@docusaurus/useBaseUrl';
import styles from './styles.module.css';
import { Analytics } from '@vercel/analytics/react'
const features = [
{
@ -86,6 +87,8 @@ function Home() {
</div>
</section>
)}
<Analytics />
</main>
</Layout>
);

View File

@ -2510,6 +2510,11 @@
dependencies:
"@types/yargs-parser" "*"
"@vercel/analytics@^0.1.11":
version "0.1.11"
resolved "https://registry.yarnpkg.com/@vercel/analytics/-/analytics-0.1.11.tgz#727a0ac655a4a89104cdea3e6925476470299428"
integrity sha512-mj5CPR02y0BRs1tN3oZcBNAX9a8NxsIUl9vElDPcqxnMfP0RbRc9fI9Ud7+QDg/1Izvt5uMumsr+6YsmVHcyuw==
"@webassemblyjs/ast@1.11.1":
version "1.11.1"
resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.11.1.tgz#2bfd767eae1a6996f432ff7e8d7fc75679c0b6a7"