From 1cadab154a18352d2be9cb61a4510a11661a8660 Mon Sep 17 00:00:00 2001 From: Maxime Normandin Date: Mon, 24 Nov 2025 17:01:30 -0500 Subject: [PATCH] add reverse proxy config --- website/docusaurus.config.js | 4 +++- website/netlify.toml | 16 +++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index d0aac68b..3769fcab 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -268,8 +268,10 @@ const config = { "posthog-docusaurus", { apiKey: process.env.POSTHOG_API_KEY, - appUrl: process.env.POSTHOG_APP_URL || 'https://us.i.posthog.com', + appUrl: 'https://compose.diamonds/54Q17895d65', + uiHost: 'https://us.posthog.com', enableInDevelopment: false, + capturePageLeave: true, }, ] ], diff --git a/website/netlify.toml b/website/netlify.toml index efd9f2ab..5219fafe 100644 --- a/website/netlify.toml +++ b/website/netlify.toml @@ -15,4 +15,18 @@ [build.environment] # Disable git submodules - they are not needed for the website build - GIT_SUBMODULES = "false" \ No newline at end of file + GIT_SUBMODULES = "false" + +[[redirects]] + from = "/54Q17895d65/static/*" + to = "https://us-assets.i.posthog.com/static/:splat" + host = "us-assets.i.posthog.com" + status = 200 + force = true + +[[redirects]] + from = "/54Q17895d65/*" + to = "https://us.i.posthog.com/:splat" + host = "us.i.posthog.com" + status = 200 + force = true \ No newline at end of file