History

exclude marketing analytics changes

Rhys Sullivan committed 6 months ago

Commit e00e7a21 parent c96b4712 files · +0 −29Browse files

Unified · Split

2 files
  1. apps/marketing/src/layouts/Layout.astro +0 −26
  2. apps/marketing/wrangler.toml +0 −3
apps/marketing/src/layouts/Layout.astro+0−26
@@ -28,32 +28,6 @@ const { · 27 unmodified lines
2828 <link rel="preconnect" href="https://fonts.googleapis.com" />
2929 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
3030 <link href="https://fonts.googleapis.com/css2?family=Anton&family=Fraunces:ital,opsz,wght@0,9..144,400..900;1,9..144,400..900&family=Geist:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet" />
31− <script>
32− import posthog from "posthog-js";
33−
34− const posthogKey =
35− import.meta.env.PUBLIC_POSTHOG_KEY ??
36− "phc_nNLrNMALpRsfrEkZovUkfMxYbcJvHnsJHeoSPavprgLL";
37− const analyticsPath = (import.meta.env.PUBLIC_ANALYTICS_PATH ?? "a").replace(
38− /^\/+|\/+$/g,
39− "",
40− );
41−
42− posthog.init(posthogKey, {
43− api_host:
44− import.meta.env.PUBLIC_POSTHOG_HOST ??
45− `${window.location.origin}/api/${analyticsPath}`,
46− ui_host: "https://us.posthog.com",
47− defaults: "2025-05-24",
48− person_profiles: "identified_only",
49− disable_session_recording: false,
50− session_recording: {
51− maskAllInputs: true,
52− maskTextSelector: "[data-ph-mask]",
53− blockSelector: "[data-ph-block]",
54− },
55− });
56− </script>
5731 </head>
5832 <body class="antialiased">
5933 <slot />
apps/marketing/wrangler.toml+0−3
@@ -1,6 +1,3 @@
11 name = "executor-marketing"
22 compatibility_date = "2026-04-22"
33 compatibility_flags = ["nodejs_compat"]
4−
5−[vars]
6−PUBLIC_POSTHOG_KEY = "phc_nNLrNMALpRsfrEkZovUkfMxYbcJvHnsJHeoSPavprgLL"