Skip to content

Commit 1b0a5c0

Browse files
authored
Merge pull request #220 from maxnorm/docs/posthog
add reverse proxy config for PostHog
2 parents da56a29 + 1cadab1 commit 1b0a5c0

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

website/docusaurus.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,10 @@ const config = {
268268
"posthog-docusaurus",
269269
{
270270
apiKey: process.env.POSTHOG_API_KEY,
271-
appUrl: process.env.POSTHOG_APP_URL || 'https://us.i.posthog.com',
271+
appUrl: 'https://compose.diamonds/54Q17895d65',
272+
uiHost: 'https://us.posthog.com',
272273
enableInDevelopment: false,
274+
capturePageLeave: true,
273275
},
274276
]
275277
],

website/netlify.toml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,18 @@
1515

1616
[build.environment]
1717
# Disable git submodules - they are not needed for the website build
18-
GIT_SUBMODULES = "false"
18+
GIT_SUBMODULES = "false"
19+
20+
[[redirects]]
21+
from = "/54Q17895d65/static/*"
22+
to = "https://us-assets.i.posthog.com/static/:splat"
23+
host = "us-assets.i.posthog.com"
24+
status = 200
25+
force = true
26+
27+
[[redirects]]
28+
from = "/54Q17895d65/*"
29+
to = "https://us.i.posthog.com/:splat"
30+
host = "us.i.posthog.com"
31+
status = 200
32+
force = true

0 commit comments

Comments
 (0)