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) => {