Skip to content

Commit ad4c576

Browse files
committed
add Analytics
1 parent f6c2b9f commit ad4c576

File tree

3 files changed

+41
-2
lines changed

3 files changed

+41
-2
lines changed

apps/docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"@tsparticles/react": "^3.0.0",
2121
"@tsparticles/slim": "^3.7.1",
2222
"@types/mdx": "^2.0.13",
23+
"@vercel/analytics": "^1.5.0",
2324
"@vercel/og": "^0.6.3",
2425
"class-variance-authority": "^0.7.0",
2526
"clsx": "^2.1.1",

apps/docs/src/app/layout.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ import "./globals.css";
33
import { RootProvider } from "fumadocs-ui/provider";
44
import type { Metadata } from "next";
55
import { JetBrains_Mono } from "next/font/google";
6+
import { Analytics } from "@vercel/analytics/react";
67

78
const jetBrainsMono = JetBrains_Mono({ subsets: ["latin"] });
89

910
export const metadata: Metadata = {
10-
title: "Codegen Docs",
11-
description: "Documentation for Codegen",
11+
title: "Codegen | The Universal CLI for Modern Development",
12+
description:
13+
"Generate tailored templates for TypeScript and JavaScript frameworks. Boost your productivity with customizable scaffolding.",
1214
};
1315

1416
export default function RootLayout({
@@ -30,6 +32,7 @@ export default function RootLayout({
3032
CodeGen is under development and will be available soon
3133
</Banner>
3234
{children}
35+
<Analytics />
3336
</RootProvider>
3437
</body>
3538
</html>

pnpm-lock.yaml

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)