feat(analytics): proxy PostHog ingestion through public-api on Vercel

- Add Vercel rewrites to proxy `/ingest/*` and `/ingest/static/*` to PostHog's US endpoints
- Update native `.env.example` to point `EXPO_PUBLIC_POSTHOG_HOST` at the self-hosted proxy URL
This commit is contained in:
2026-03-21 15:39:56 -04:00
parent ef90e57f19
commit 37c35488fd
12 changed files with 80 additions and 22 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
EXPO_PUBLIC_POSTHOG_KEY=
EXPO_PUBLIC_POSTHOG_HOST=https://us.i.posthog.com
EXPO_PUBLIC_POSTHOG_HOST=https://public-api.sofa.watch/ingest