docs: enable CF analytics

This commit is contained in:
Sébastien Chopin
2023-10-09 12:01:54 +02:00
parent fe348b48c6
commit aa42c4a5d1
3 changed files with 19 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ export default defineNuxtConfig({
'@nuxtjs/plausible',
'@vueuse/nuxt',
'nuxt-component-meta',
'nuxt-cloudflare-analytics',
'modules/content-examples-code'
],
runtimeConfig: {
@@ -77,6 +78,10 @@ export default defineNuxtConfig({
exposed: false
}
},
cloudflareAnalytics: {
token: '1e2b0c5e9a214f0390b9b94e043d8d4c',
scriptPath: false
},
hooks: {
// Related to https://github.com/nuxt/nuxt/pull/22558
'components:extend': (components) => {

View File

@@ -19,6 +19,7 @@
"eslint": "^8.50.0",
"joi": "^17.10.2",
"nuxt": "^3.7.4",
"nuxt-cloudflare-analytics": "^1.0.8",
"nuxt-component-meta": "^0.5.4",
"nuxt-og-image": "^2.0.28",
"typescript": "^5.2.2",