Skip to content

Commit 1f9f221

Browse files
committed
chore(docs): add cf analytics
1 parent 24c1ef6 commit 1f9f221

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

docs/nuxt.config.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ export default defineNuxtConfig({
77
'@nuxthq/studio',
88
'@nuxtjs/fontaine',
99
'@nuxtjs/google-fonts',
10-
'nuxt-og-image'
10+
'nuxt-og-image',
11+
'nuxt-cloudflare-analytics'
1112
],
1213
hooks: {
1314
// Define `@nuxt/ui` components as global to use them in `.md` (feel free to add those you need)
@@ -34,6 +35,10 @@ export default defineNuxtConfig({
3435
routeRules: {
3536
'/api/search.json': { prerender: true },
3637
},
38+
cloudflareAnalytics: {
39+
token: '469b1f7049f14941acef0d0262a07ab3',
40+
scriptPath: false
41+
},
3742
devtools: {
3843
enabled: true
3944
},

docs/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"@nuxtjs/fontaine": "^0.4.1",
1818
"@nuxtjs/google-fonts": "^3.1.3",
1919
"nuxt": "^3.10.2",
20+
"nuxt-cloudflare-analytics": "^1.0.8",
2021
"nuxt-og-image": "^2.2.4"
2122
},
2223
"devDependencies": {

pnpm-lock.yaml

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)