Skip to content

Commit

Permalink
docs(website): setup analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Dec 22, 2023
1 parent 8431767 commit 93fbe42
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@vercel/analytics": "^1.1.1",
"@vercel/og": "^0.6.1",
"next": "^14.0.4",
"nextra": "^2.13.2",
Expand Down
2 changes: 2 additions & 0 deletions website/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import "@/styles/globals.css";
import type { AppProps } from "next/app";
import localFont from "next/font/local";
import { Inter } from "next/font/google";
import { Analytics } from "@vercel/analytics/react";

const inter = Inter({ subsets: ["latin"], variable: "--font-inter" });
const calSans = localFont({
Expand All @@ -16,6 +17,7 @@ export default function App({ Component, pageProps }: AppProps) {
className={`${inter.variable} ${calSans.variable} antialiased font-sans`}
>
<Component {...pageProps} />
<Analytics />
</div>
);
}
13 changes: 13 additions & 0 deletions website/pnpm-lock.yaml

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

0 comments on commit 93fbe42

Please sign in to comment.