Skip to content

Add PostHog reverse proxy via Vercel rewrites#22

Open
kilo-code-bot[bot] wants to merge 1 commit intomainfrom
posthog-reverse-proxy
Open

Add PostHog reverse proxy via Vercel rewrites#22
kilo-code-bot[bot] wants to merge 1 commit intomainfrom
posthog-reverse-proxy

Conversation

@kilo-code-bot
Copy link
Contributor

@kilo-code-bot kilo-code-bot bot commented Mar 12, 2026

Summary

  • Create vercel.json with Vercel rewrites to proxy /ingest/* requests to PostHog's ingestion endpoints at the CDN/edge layer (no SSR adapter needed)
  • Update public/posthog.js to use the /ingest proxy as api_host and add ui_host pointing to https://us.posthog.com
  • Delete src/components/PostHogScript.astro — dead code that was never imported anywhere

Closes #21

- Create vercel.json with rewrites to proxy /ingest/* requests to PostHog
- Update public/posthog.js to use /ingest proxy as api_host and add ui_host
- Delete unused src/components/PostHogScript.astro (dead code, never imported)

Closes #21
@vercel
Copy link

vercel bot commented Mar 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agentic-path Building Building Preview Mar 12, 2026 8:44pm

Request Review

@evanjacobson evanjacobson self-assigned this Mar 12, 2026
@evanjacobson evanjacobson marked this pull request as draft March 12, 2026 20:46
@evanjacobson evanjacobson marked this pull request as ready for review March 12, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PostHog Reverse Proxy

1 participant