Skip to content

Commit

Permalink
add analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
sunwu51 committed Jul 3, 2024
1 parent dc568f6 commit a2d5116
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import NavBar from "@/app/components/NavbarMenu";
import DocSearch from "@/app/components/DocSearch"
import "./globals.css";
import "./prism-dracula.css";
import { Analytics } from "@vercel/analytics/react"

const inter = Inter({ subsets: ["latin"] });

Expand All @@ -29,6 +30,7 @@ export default function RootLayout({ children }) {
<NavBar className="w-full" />
</div>
<div className="markdown-body mt-20">{children}</div>
<Analytics />
</body>
</html>
);
Expand Down
26 changes: 26 additions & 0 deletions 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@next/mdx": "^14.2.3",
"@react-types/shared": "^3.23.1",
"@types/mdx": "^2.0.13",
"@vercel/analytics": "^1.3.1",
"antd": "^5.18.0",
"asciinema-player": "^3.7.1",
"clsx": "^2.1.1",
Expand Down

0 comments on commit a2d5116

Please sign in to comment.