Skip to content

Commit ab6f817

Browse files
committed
databuddy
1 parent 2c58f9b commit ab6f817

File tree

4 files changed

+37
-33
lines changed

4 files changed

+37
-33
lines changed

apps/web/.source/source.config.mjs

Lines changed: 0 additions & 24 deletions
This file was deleted.

apps/web/app/layout.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import "@/app/global.css";
2+
import { Databuddy } from "@databuddy/sdk";
23
import { RootProvider } from "fumadocs-ui/provider";
34
import { Geist_Mono } from "next/font/google";
45
import type { ReactNode } from "react";
@@ -11,7 +12,15 @@ export default function Layout({ children }: { children: ReactNode }) {
1112
return (
1213
<html className={geistMono.className} lang="en" suppressHydrationWarning>
1314
<body className="flex min-h-screen flex-col">
14-
<RootProvider>{children}</RootProvider>
15+
<RootProvider>
16+
<Databuddy
17+
clientId={process.env.NEXT_PUBLIC_DATABUDDY_CLIENT_ID ?? ""}
18+
enableBatching
19+
trackErrors
20+
trackWebVitals
21+
/>
22+
{children}
23+
</RootProvider>
1524
</body>
1625
</html>
1726
);

apps/web/package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,22 @@
99
"postinstall": "fumadocs-mdx"
1010
},
1111
"dependencies": {
12+
"@databuddy/sdk": "^2.0.0",
13+
"fumadocs-core": "15.7.7",
14+
"fumadocs-mdx": "11.8.2",
15+
"fumadocs-ui": "15.7.7",
1216
"next": "15.5.2",
1317
"react": "^19.1.0",
14-
"react-dom": "^19.1.0",
15-
"fumadocs-ui": "15.7.7",
16-
"fumadocs-core": "15.7.7",
17-
"fumadocs-mdx": "11.8.2"
18+
"react-dom": "^19.1.0"
1819
},
1920
"devDependencies": {
21+
"@tailwindcss/postcss": "^4.1.12",
22+
"@types/mdx": "^2.0.13",
2023
"@types/node": "22.15.21",
2124
"@types/react": "^19.1.5",
2225
"@types/react-dom": "^19.1.5",
23-
"typescript": "^5.9.2",
24-
"@types/mdx": "^2.0.13",
25-
"@tailwindcss/postcss": "^4.1.12",
26+
"postcss": "^8.5.6",
2627
"tailwindcss": "^4.1.12",
27-
"postcss": "^8.5.6"
28+
"typescript": "^5.9.2"
2829
}
2930
}

pnpm-lock.yaml

Lines changed: 18 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)