improvement(docs): add analytics

This commit is contained in:
Waleed Latif
2025-05-26 13:34:22 -07:00
parent 819c0cc8eb
commit 334f12c602
3 changed files with 7 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ import type { ReactNode } from 'react'
import { RootProvider } from 'fumadocs-ui/provider'
import { Inter } from 'next/font/google'
import './global.css'
import { Analytics } from '@vercel/analytics/next'
const inter = Inter({
subsets: ['latin'],
@@ -11,7 +12,10 @@ export default function Layout({ children }: { children: ReactNode }) {
return (
<html lang='en' className={inter.className} suppressHydrationWarning>
<body className='flex min-h-screen flex-col'>
<RootProvider>{children}</RootProvider>
<RootProvider>
{children}
<Analytics />
</RootProvider>
</body>
</html>
)

View File

@@ -12,6 +12,7 @@
},
"dependencies": {
"@tabler/icons-react": "^3.31.0",
"@vercel/analytics": "1.5.0",
"@vercel/og": "^0.6.5",
"clsx": "^2.1.1",
"fumadocs-core": "^15.0.16",

View File

@@ -25,6 +25,7 @@
"version": "0.0.0",
"dependencies": {
"@tabler/icons-react": "^3.31.0",
"@vercel/analytics": "1.5.0",
"@vercel/og": "^0.6.5",
"clsx": "^2.1.1",
"fumadocs-core": "^15.0.16",