Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
📈 Use reverse proxy for posthog
Luke Vella4216652887cb
diff --git a/apps/landing/vercel.json b/apps/landing/vercel.jsonindex 32563a24b..7461cb9b1 100644--- a/apps/landing/vercel.json+++ b/apps/landing/vercel.json@@ -1,5 +1,15 @@{"installCommand": "pnpm install","buildCommand": "cd ../.. && pnpm db:generate && pnpm build:landing",- "outputDirectory": ".next"+ "outputDirectory": ".next",+ "rewrites": [+ {+ "source": "/relay-XiKLe/static/(.*)",+ "destination": "https://eu-assets.i.posthog.com/static/$1"+ },+ {+ "source": "/relay-XiKLe/(.*)",+ "destination": "https://eu.i.posthog.com/$1"+ }+ ]}diff --git a/apps/web/vercel.json b/apps/web/vercel.jsonindex 3a9809705..2b75df7cc 100644--- a/apps/web/vercel.json+++ b/apps/web/vercel.json@@ -1,5 +1,15 @@{"installCommand": "pnpm install","buildCommand": "cd ../.. && pnpm db:generate && pnpm build:web && pnpm db:deploy",- "outputDirectory": ".next"+ "outputDirectory": ".next",+ "rewrites": [+ {+ "source": "/relay-XiKLe/static/(.*)",+ "destination": "https://eu-assets.i.posthog.com/static/$1"+ },+ {+ "source": "/relay-XiKLe/(.*)",+ "destination": "https://eu.i.posthog.com/$1"+ }+ ]}diff --git a/packages/posthog/src/client.tsx b/packages/posthog/src/client.tsxindex 2e98d76be..188a3a38a 100644--- a/packages/posthog/src/client.tsx+++ b/packages/posthog/src/client.tsx@@ -20,7 +20,8 @@ if (typeof window !== "undefined" && process.env.NEXT_PUBLIC_POSTHOG_API_KEY) {posthog.init(process.env.NEXT_PUBLIC_POSTHOG_API_KEY, {debug: false,- api_host: process.env.NEXT_PUBLIC_POSTHOG_API_HOST,+ api_host: "/relay-XiKLe/",+ ui_host: "https://eu.i.posthog.com",capture_pageview: false,capture_pageleave: true,disable_session_recording: true,