Repository navigation
[CI] (edaca63) next-js/15-app-router-todo - #2883
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
Closed
wizard-ci-bot[bot] wants to merge 1 commit into
wizard-ci-bot[bot] wants to merge 1 commit into
Conversation
Author
PR Evaluation ReportSummaryThis PR integrates PostHog into a Next.js 15 App Router todo application. It adds both client-side (
Confidence score: 4/5 👍
File changes
App sanity check ✅
Issues
|
| Criteria | Result | Description |
|---|---|---|
| PostHog SDKs installed | Yes | posthog-js@^1.402.3 and posthog-node@^5.44.0 added to package.json |
| PostHog client initialized | Yes | Client: instrumentation-client.ts with posthog.init(). Server: factory function in lib/posthog-server.ts with flushAt: 1, flushInterval: 0 — both follow documented patterns |
| capture() | Yes | Multiple meaningful captures: todo_created, todo_completion_toggled, todo_updated, todo_deleted on both client and server |
| identify() | N/A | App has no authentication system; no login flow exists to hook into |
| Error tracking | Yes | Client-side: capture_exceptions: true in init + manual posthog.captureException(error) in catch blocks. Server-side: posthog.captureException(error, 'anonymous') in API route catch blocks |
| Reverse proxy | No | No rewrites configured in next.config.ts — client-side events may be blocked by ad blockers |
Issues
- No reverse proxy:
next.config.tscontains no rewrites to proxy PostHog requests through the app's domain. The PostHog docs recommend this for Next.js to avoid ad blockers intercepting client-side events. [MEDIUM]
Other completed criteria
- API key loaded from
process.env.NEXT_PUBLIC_POSTHOG_PROJECT_TOKEN— not hardcoded - Host correctly configured via
process.env.NEXT_PUBLIC_POSTHOG_HOSTpointing tohttps://us.i.posthog.com - Server-side client properly calls
await posthog.shutdown()after capturing - Session ID and distinct ID correctly forwarded from client to server via headers
defaults: '2026-05-30'correctly set in client init
PostHog insights and events ✅
| Filename | PostHog events | Description |
|---|---|---|
components/todos/todo-list.tsx |
todo_created, todo_completion_toggled, todo_deleted, captureException |
Client-side tracking of all todo CRUD operations with enriched properties (completion state, has_description) |
app/api/todos/route.ts |
todo_created, captureException |
Server-side todo creation tracking with properties including initial_completion_state, has_description, source |
app/api/todos/[id]/route.ts |
todo_updated, todo_deleted, captureException |
Server-side update/delete tracking with completion_state_changed and source properties |
Issues
- No issues — events are well-structured and meaningful.
Other completed criteria
- Events represent real user actions (creating, completing, deleting todos)
- Events enable product insights — can build funnels from creation → completion → deletion
- Events include relevant properties (completion state, has_description, source)
- No PII in event properties
- Event names are descriptive and use consistent snake_case naming
Reviewed by wizard workbench PR evaluator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated wizard CI run
Source: wizard-pr
Trigger ID:
edaca63App:
next-js/15-app-router-todoApp directory:
apps/next-js/15-app-router-todoWorkbench branch:
wizard-ci-edaca63-next-js-15-app-router-todoWizard branch:
release-please--branches--main--components--wizardContext Mill branch:
mainPostHog (MCP) branch:
masterTimestamp: 2026-07-16T17:06:19.164Z
Duration: 164.9s
YARA Scanner