Skip to content

Commit 9af167e

Browse files
committed
feat: databuddy tracking
1 parent 6082c40 commit 9af167e

File tree

5 files changed

+18
-12
lines changed

5 files changed

+18
-12
lines changed

.eslintrc.json

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

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ bun install
107107
cp .env.example .env.local
108108
# Fill in required environment variables
109109

110+
# Generate the prisma client & push the schema to your local database
111+
bunx prisma db push
112+
110113
# Start development server
111114
bun run dev
112115
```

auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export const auth = betterAuth({
8383
},
8484
plugins: [
8585
multiSession(),
86-
nextCookies(),
86+
nextCookies(),
8787
twoFactor(),
8888
emailOTP({
8989
sendVerificationOTP: async ({ email, otp }) => {

src/app/layout.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,20 @@ export default function RootLayout({
9090
src="https://cloud.umami.is/script.js"
9191
data-website-id="daf3c389-edda-4092-aed1-bd93cd7b2761"
9292
/>
93+
<Script
94+
src="https://app.databuddy.cc/databuddy.js"
95+
data-client-id="rhW0oqd511QgVTw1P31WT"
96+
data-api-url="https://api.databuddy.cc"
97+
data-track-screen-views="true"
98+
data-track-performance="true"
99+
data-track-web-vitals="false"
100+
data-track-errors="true"
101+
// data-enable-batching="true"
102+
// data-batch-size="20"
103+
// data-batch-timeout="5000"
104+
strategy="afterInteractive"
105+
defer
106+
/>
93107
<script
94108
dangerouslySetInnerHTML={{
95109
__html: `

vercel.json

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

0 commit comments

Comments
 (0)