Skip to content

Commit 63dc9b3

Browse files
committed
fix: layout
1 parent f72ef15 commit 63dc9b3

File tree

4 files changed

+568
-28
lines changed

4 files changed

+568
-28
lines changed

apps/docs/app/layout.tsx

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import './global.css';
2-
import { Databuddy } from '@databuddy/sdk';
2+
import { Databuddy } from '@databuddy/sdk/react';
33
import { RootProvider } from 'fumadocs-ui/provider';
44
import type { Metadata, Viewport } from 'next';
55
import { Geist, Geist_Mono, Manrope } from 'next/font/google';
6-
import Head from 'next/head';
7-
import Script from 'next/script';
86
import { ThemeProvider } from 'next-themes';
97
import type { ReactNode } from 'react';
108
import { Toaster } from '@/components/ui/sonner';
@@ -93,21 +91,7 @@ export default function Layout({ children }: { children: ReactNode }) {
9391
lang="en"
9492
suppressHydrationWarning
9593
>
96-
<Script
97-
async
98-
data-client-id="OXmNQsViBT-FOS_wZCTHc"
99-
data-track-attributes={true}
100-
data-track-errors={true}
101-
data-track-outgoing-links={true}
102-
data-track-web-vitals={true}
103-
src="https://cdn.databuddy.cc/databuddy.js"
104-
strategy="afterInteractive"
105-
/>
106-
<Databuddy clientId="OXmNQsViBT-FOS_wZCTHc" />
107-
<Head>
108-
<link href="https://icons.duckduckgo.com" rel="preconnect" />
109-
<link href="https://icons.duckduckgo.com" rel="dns-prefetch" />
110-
</Head>
94+
<Databuddy clientId="OXmNQsViBT-FOS_wZCTHc" trackErrors trackAttributes trackOutgoingLinks trackWebVitals/>
11195
<body>
11296
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
11397
<RootProvider>

apps/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"postinstall": "fumadocs-mdx"
1010
},
1111
"dependencies": {
12-
"@databuddy/sdk": "^1.2.0",
12+
"@databuddy/sdk": "^2.2.0",
1313
"@hookform/resolvers": "^5.0.1",
1414
"@icons-pack/react-simple-icons": "^13.7.0",
1515
"@phosphor-icons/react": "^2.1.10",

0 commit comments

Comments
 (0)