v0.5.76: posthog improvements, readme updates#3067
Conversation
waleedlatif1
commented
Jan 29, 2026
- fix(oauth): use createElement for icon components to fix React hooks error (fix(oauth): use createElement for icon components to fix React hooks error #3064)
- fix(posthog): move session recording proxy to middleware for large payload support (fix(posthog): move session recording proxy to middleware for large payload support #3065)
- chore(readme): update readme.md (chore(readme): update readme.md #3066)
…yload support (#3065) Next.js rewrites can strip request bodies for large payloads (1MB+), causing 400 errors from CloudFront. PostHog session recordings require up to 64MB per message. Moving the proxy to middleware ensures proper body passthrough. Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile OverviewGreptile SummaryThis PR consolidates three bug fixes and documentation updates into version 0.5.76. Key changes:
The PostHog change is the most impactful—moving the The React hooks fix addresses a runtime error where icon components were being called as functions instead of being properly rendered as React components. Using Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Client
participant Middleware as Middleware (proxy.ts)
participant PostHog as PostHog API
Note over Client,PostHog: Before (Next.js rewrites in next.config.ts)
Client->>Middleware: Request /ingest/static/file.js
Note over Middleware: Rewrites handled by Next.js<br/>Limited payload size support
Middleware->>PostHog: Forward to us-assets.i.posthog.com
PostHog-->>Middleware: Response
Middleware-->>Client: Return response
Note over Client,PostHog: After (Middleware proxy in proxy.ts)
Client->>Middleware: Request /ingest/static/file.js
Note over Middleware: Early handling in proxy()<br/>Supports large payloads
Middleware->>Middleware: Check pathname starts with '/ingest/'
Middleware->>Middleware: Determine hostname<br/>(us-assets or us.i.posthog.com)
Middleware->>Middleware: Build target URL<br/>Forward request headers
Middleware->>PostHog: NextResponse.rewrite() to PostHog
PostHog-->>Middleware: Response
Middleware-->>Client: Return response
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.