@@ -57,6 +57,10 @@ export default defineNuxtConfig({
5757 publicKey : process . env . POSTHOG_PUBLIC_KEY || '' ,
5858 host : process . env . POSTHOG_HOST || 'https://eu.i.posthog.com' ,
5959 clientConfig : {
60+ // ── Reverse proxy: route PostHog through reqcore.com to bypass ad blockers ──
61+ // Requests to /ingest/** are proxied by Nitro to eu.i.posthog.com
62+ api_host : '/ingest' ,
63+ ui_host : 'https://eu.posthog.com' ,
6064 // ── Privacy: disable invasive features ──
6165 autocapture : false ,
6266 disable_session_recording : true ,
@@ -117,11 +121,8 @@ export default defineNuxtConfig({
117121
118122 runtimeConfig : {
119123 public : {
120- /** PostHog public key and host for server-side event capture */
121- posthog : {
122- publicKey : process . env . POSTHOG_PUBLIC_KEY || '' ,
123- host : process . env . POSTHOG_HOST || 'https://eu.i.posthog.com' ,
124- } ,
124+ // PostHog runtimeConfig is managed by @posthog /nuxt via posthogConfig above.
125+ // Override at runtime with NUXT_PUBLIC_POSTHOG_PUBLIC_KEY / NUXT_PUBLIC_POSTHOG_HOST.
125126 /** When set, the dashboard shows a read-only demo banner for this org slug */
126127 demoOrgSlug : process . env . DEMO_ORG_SLUG || ( isRailwayPreview ? 'reqcore-demo' : '' ) ,
127128 /** Public live-demo account email used to prefill sign-in */
@@ -202,6 +203,9 @@ export default defineNuxtConfig({
202203 // Route rules — prerender/ISR for public pages
203204 // ─────────────────────────────────────────────
204205 routeRules : {
206+ // ── PostHog reverse proxy — bypasses ad blockers by routing through reqcore.com ──
207+ '/ingest/static/**' : { proxy : 'https://eu-assets.i.posthog.com/static/**' } ,
208+ '/ingest/**' : { proxy : 'https://eu.i.posthog.com/**' } ,
205209 '/' : { prerender : true } ,
206210 '/roadmap' : { prerender : true } ,
207211 '/blog' : { prerender : true } ,
0 commit comments