File tree 3 files changed +20
-0
lines changed
3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
const path = require ( "path" ) ;
4
4
5
+ const appUrl = process . env . POSTHOG_API_HOST || "-"
6
+ const apiKey = process . env . POSTHOG_PROJECT_KEY || "-"
7
+
5
8
module . exports = {
6
9
trailingSlash : true ,
7
10
title : "ZeroTier Documentation" ,
@@ -15,6 +18,14 @@ module.exports = {
15
18
projectName : "docs" , // Usually your repo name.
16
19
plugins : [
17
20
require . resolve ( 'docusaurus-lunr-search' ) ,
21
+ [
22
+ "posthog-docusaurus" ,
23
+ {
24
+ apiKey : apiKey ,
25
+ appUrl : appUrl ,
26
+ enableInDevelopment : false ,
27
+ } ,
28
+ ] ,
18
29
] ,
19
30
future : {
20
31
experimental_faster : true ,
Original file line number Diff line number Diff line change 45
45
"npm-run-all2" : " ^6.2.3" ,
46
46
"pixelmatch" : " ^6.0.0" ,
47
47
"pngjs" : " ^7.0.0" ,
48
+ "posthog-docusaurus" : " ^2.0.4" ,
48
49
"react" : " ^18.3.1" ,
49
50
"react-dom" : " ^18.3.1" ,
50
51
"redocusaurus" : " ^2.2.2"
Original file line number Diff line number Diff line change @@ -13901,6 +13901,13 @@ __metadata:
13901
13901
languageName: node
13902
13902
linkType: hard
13903
13903
13904
+ "posthog-docusaurus@npm:^2.0.4":
13905
+ version: 2.0.4
13906
+ resolution: "posthog-docusaurus@npm:2.0.4"
13907
+ checksum: 10c0/94ee96eecc76be6f311c8f39b82adec8c123ed4af9c505bb56fe78ddad9b26347db5501a4c21e7b793e93709dbc96ae61936c7fa161b87941e36d2f3be8f0527
13908
+ languageName: node
13909
+ linkType: hard
13910
+
13904
13911
"pretty-error@npm:^4.0.0":
13905
13912
version: 4.0.0
13906
13913
resolution: "pretty-error@npm:4.0.0"
@@ -17063,6 +17070,7 @@ __metadata:
17063
17070
npm-run-all2: "npm:^6.2.3"
17064
17071
pixelmatch: "npm:^6.0.0"
17065
17072
pngjs: "npm:^7.0.0"
17073
+ posthog-docusaurus: "npm:^2.0.4"
17066
17074
react: "npm:^18.3.1"
17067
17075
react-dom: "npm:^18.3.1"
17068
17076
redocusaurus: "npm:^2.2.2"
You can’t perform that action at this time.
0 commit comments