Skip to content

Commit b6b1ecf

Browse files
committed
update docusarus, fix issue with gtag
1 parent 6c2b539 commit b6b1ecf

File tree

3 files changed

+4285
-1681
lines changed

3 files changed

+4285
-1681
lines changed

adminforth/documentation/docusaurus.config.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import {themes as prismThemes} from 'prism-react-renderer';
22
import type {Config} from '@docusaurus/types';
33
import type * as Preset from '@docusaurus/preset-classic';
44

5+
console.log('⭐⭐⭐⭐⭐⭐⭐⭐', process.env.NODE_ENV)
6+
7+
58
const config: Config = {
69
title: 'Vue & Node admin panel framework',
710
tagline: 'Start developing backoffice using open-source admin framework on Tailwind UI and extend it with Vue3',
@@ -59,14 +62,10 @@ const config: Config = {
5962
theme: {
6063
customCss: './src/css/custom.css',
6164
},
62-
...(
63-
process.env.NODE_ENV === 'production' ? {
64-
gtag: {
65-
trackingID: 'G-7K99Q2BH04',
66-
anonymizeIP: true,
67-
}
68-
} : {}
69-
)
65+
gtag: {
66+
trackingID: 'G-7K99Q2BH04',
67+
anonymizeIP: true,
68+
}
7069
} satisfies Preset.Options,
7170
],
7271
],

0 commit comments

Comments
 (0)