Skip to content

Commit 118607d

Browse files
committed
fix(docs): analytics
1 parent 9411260 commit 118607d

File tree

4 files changed

+8
-26
lines changed

4 files changed

+8
-26
lines changed

apps/docs/astro.config.mjs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ import { defineConfig } from 'astro/config';
66

77
// https://astro.build/config
88
export default defineConfig({
9-
adapters: [
10-
vercel({
11-
webAnalytics: { enabled: true },
12-
}),
13-
],
9+
adapters: [vercel()],
1410
build: {
1511
redirects: false,
1612
},

apps/docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@rnr/reusables": "workspace:*",
2424
"@types/react": "~19.0.14",
2525
"@types/react-dom": "^19.1.3",
26-
"@vercel/analytics": "^1.3.2",
26+
"@vercel/analytics": "^1.5.0",
2727
"astro": "^4.4.9",
2828
"class-variance-authority": "^0.7.0",
2929
"clsx": "^2.1.0",

apps/docs/src/components/Head.astro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
---
22
import type { Props } from '@astrojs/starlight/props'
33
import Default from '@astrojs/starlight/components/Head.astro'
4+
import Analytics from '@vercel/analytics/astro';
45
---
56

67
<!-- Render the default <Head/> component. -->
78
<Default {...Astro.props}><slot /></Default>
89

910
<!-- Render the <meta/> tags for the Open Graph images. -->
1011
<meta property="og:image" content="https://rnr-docs.vercel.app/og.jpeg" />
11-
<meta name="twitter:image" content="https://rnr-docs.vercel.app/og.jpeg" />
12+
<meta name="twitter:image" content="https://rnr-docs.vercel.app/og.jpeg" />
13+
14+
<Analytics />

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)