Skip to content

Commit

Permalink
docs: enable vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
sansyrox committed Sep 23, 2023
1 parent 7b2f717 commit d08bc32
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions new_docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions new_docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@next/mdx": "^13.0.2",
"@sindresorhus/slugify": "^2.2.1",
"@tailwindcss/typography": "^0.5.4",
"@vercel/analytics": "^1.0.2",
"algoliasearch": "^4.17.2",
"autoprefixer": "^10.4.12",
"axios": "^1.4.0",
Expand Down
2 changes: 2 additions & 0 deletions new_docs/src/pages/_document.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Head, Html, Main, NextScript } from 'next/document'
import { Analytics } from '@vercel/analytics/react';

const modeScript = `
let darkModeMediaQuery = window.matchMedia('(prefers-color-scheme: dark)')
Expand Down Expand Up @@ -59,6 +60,7 @@ export default function Document() {
<body className="flex h-full flex-col bg-black">
<Main />
<NextScript />
<Analytics />
</body>
</Html>
)
Expand Down

0 comments on commit d08bc32

Please sign in to comment.