Skip to content

Commit

Permalink
feat: add manual cloudflare analytic v2
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Oct 31, 2024
1 parent 8a59997 commit 5ba4d26
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,6 @@ const config: Config = {
prism: PrismConfig,
algolia: AlgoliaConfig,

scripts: [
{
src: 'https://static.cloudflareinsights.com/beacon.min.js',
async: true,
'data-cf-beacon': `{"token": "${process.env.CLOUDFLARE_ANALYTICS_TOKEN}"}`,
},
],
} satisfies Preset.ThemeConfig,

plugins: [
Expand All @@ -108,6 +101,14 @@ const config: Config = {
],
baseUrlIssueBanner: false,

scripts: [
{
src: 'https://static.cloudflareinsights.com/beacon.min.js',
async: true,
'data-cf-beacon': `{"token": "${process.env.CLOUDFLARE_ANALYTICS_TOKEN}"}`,
},
],

themes: ['@docusaurus/theme-mermaid', '@docusaurus/theme-live-codeblock'],
};

Expand Down

0 comments on commit 5ba4d26

Please sign in to comment.