Skip to content

Commit

Permalink
chore: add va analytics (#4582)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgarciadev authored Jan 17, 2025
1 parent a3ce898 commit 36132c8
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 4 deletions.
2 changes: 2 additions & 0 deletions apps/docs/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import "@/styles/globals.css";
import "@/styles/sandpack.css";
import {Metadata, Viewport} from "next";
import {clsx} from "@heroui/shared-utils";
import {Analytics} from "@vercel/analytics/next";

import {Providers} from "./providers";

Expand Down Expand Up @@ -84,6 +85,7 @@ export default function RootLayout({children}: {children: React.ReactNode}) {
<ProBanner />
<Navbar mobileRoutes={manifest.mobileRoutes} routes={manifest.routes} />
{children}
<Analytics mode="production" />
<Footer />
</div>
<Cmdk />
Expand Down
9 changes: 5 additions & 4 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
"dependencies": {
"@codesandbox/sandpack-react": "^2.6.4",
"@emotion/is-prop-valid": "^1.3.1",
"@iconify/icons-solar": "1.2.3",
"@iconify/react": "5.0.2",
"@internationalized/date": "3.6.0",
"@mapbox/rehype-prism": "^0.6.0",
"@heroui/aria-utils": "workspace:*",
"@heroui/badge": "workspace:*",
"@heroui/code": "workspace:*",
Expand All @@ -39,6 +35,10 @@
"@heroui/use-clipboard": "workspace:*",
"@heroui/use-infinite-scroll": "workspace:*",
"@heroui/use-is-mobile": "workspace:*",
"@iconify/icons-solar": "1.2.3",
"@iconify/react": "5.0.2",
"@internationalized/date": "3.6.0",
"@mapbox/rehype-prism": "^0.6.0",
"@radix-ui/react-scroll-area": "^1.0.5",
"@react-aria/focus": "3.19.0",
"@react-aria/i18n": "3.12.4",
Expand All @@ -54,6 +54,7 @@
"@rehooks/local-storage": "^2.4.5",
"@stackblitz/sdk": "^1.11.0",
"@tanstack/react-virtual": "3.11.2",
"@vercel/analytics": "^1.4.1",
"canvas-confetti": "^1.9.2",
"clsx": "^1.2.1",
"cmdk": "^0.2.0",
Expand Down
34 changes: 34 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 36132c8

Please sign in to comment.