Skip to content

Commit

Permalink
chore(docs): add cf analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Feb 21, 2024
1 parent 24c1ef6 commit 1f9f221
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export default defineNuxtConfig({
'@nuxthq/studio',
'@nuxtjs/fontaine',
'@nuxtjs/google-fonts',
'nuxt-og-image'
'nuxt-og-image',
'nuxt-cloudflare-analytics'
],
hooks: {
// Define `@nuxt/ui` components as global to use them in `.md` (feel free to add those you need)
Expand All @@ -34,6 +35,10 @@ export default defineNuxtConfig({
routeRules: {
'/api/search.json': { prerender: true },
},
cloudflareAnalytics: {
token: '469b1f7049f14941acef0d0262a07ab3',
scriptPath: false
},
devtools: {
enabled: true
},
Expand Down
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@nuxtjs/fontaine": "^0.4.1",
"@nuxtjs/google-fonts": "^3.1.3",
"nuxt": "^3.10.2",
"nuxt-cloudflare-analytics": "^1.0.8",
"nuxt-og-image": "^2.2.4"
},
"devDependencies": {
Expand Down
13 changes: 13 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1f9f221

Please sign in to comment.