Skip to content

Commit d9f0132

Browse files
committed
add - Add vercel analytics 1.3.2
1 parent 246cd03 commit d9f0132

4 files changed

Lines changed: 58 additions & 30 deletions

File tree

astro.config.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,9 @@ export default defineConfig({
6969
}),
7070
],
7171

72-
adapter: vercel(),
72+
adapter: vercel({
73+
webAnalytics: {
74+
enabled: true
75+
},
76+
}),
7377
});

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dependencies": {
1313
"@astrojs/starlight": "^0.34.3",
1414
"@astrojs/vercel": "^8.1.4",
15-
"@vercel/analytics": "^1.5.0",
15+
"@vercel/analytics": "^1.3.2",
1616
"astro": "^5.6.1",
1717
"sharp": "^0.32.5",
1818
"starlight-nextjs-theme": "^0.2.0"

src/content/docs/index.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ hero:
1313
---
1414

1515
import { Card, CardGrid } from "@astrojs/starlight/components";
16-
import Analytics from "@vercel/analytics/astro";
1716

1817
## Next steps
1918

@@ -26,5 +25,3 @@ import Analytics from "@vercel/analytics/astro";
2625
Learn [how to authenticate](/authentication) with the SDK.
2726
</Card>
2827
</CardGrid>
29-
30-
<Analytics mode="production" />

0 commit comments

Comments
 (0)