Skip to content

fix(docs): Next.js App Router setup and hosted ingest (TT-002/TT-003) - #696

Merged
cursor[bot] merged 3 commits into
developfrom
cursor/fix-docs-nextjs-tt002-tt003-f4fb
Sep 26, 2026
Merged

cursor[bot] merged 3 commits into
developfrom
cursor/fix-docs-nextjs-tt002-tt003-f4fb

Conversation

@unjica

@unjica unjica commented Sep 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Fixes TT-002 (P1) and TT-003 (P2) so a brand-new Next.js user can follow /docs/nextjs literally for a compiling App Router setup that ingests to hosted cloud.

  • TT-002: Shared server layout.tsx + client track-page-view.tsx (same as /error-tracking/nextjs); removed non-compiling usePathname placeholder.
  • TT-003: Documents apiKey, https://api.telemetry-tracker.com, browser .env.local, and Settings → API keys.
  • Review pass: Production keepables are install + browser env + layout + TrackPageView. Docs-check button/route and instrumentation.ts are explicitly optional. Browser uses NEXT_PUBLIC_TELEMETRY_*; server uses TELEMETRY_* (never NEXT_PUBLIC_ for server-only).

How to test

pnpm lint && pnpm --filter dashboard test && pnpm build

Post-deploy QA clean-room: copy keepable // blocks + browser env; optionally add docs-check helpers to verify docs-check in Issues.

Checklist

  • Tests / lint / build
  • CHANGELOG [Unreleased]
  • Docs aligned across /docs/nextjs, /error-tracking/nextjs, /docs/hosted-cloud
  • No deploy yet

Security / privacy

N/A — documentation. Client keys use NEXT_PUBLIC_ by design; server instrumentation uses non-public TELEMETRY_API_KEY.

Open in Web Open in Cursor 

cursoragent and others added 3 commits September 26, 2026 07:59
Replace the non-compiling /docs/nextjs layout snippet with the shared
server layout + client TrackPageView pattern, document apiKey and the
hosted ingest URL/env vars, and drop stale claims that /server is
unpublished. Align /error-tracking/nextjs and /docs/hosted-cloud.

Co-authored-by: Sanja Malovic <[email protected]>
Clarify that browser env / layout / TrackPageView are the keepable
setup; docs-check helpers and instrumentation.ts are optional
verification or server-only additions, with TELEMETRY_* separate from
NEXT_PUBLIC_*.

Co-authored-by: Sanja Malovic <[email protected]>
@unjica
unjica marked this pull request as ready for review September 26, 2026 08:05
@cursor
cursor Bot merged commit 2ae82e2 into develop Sep 26, 2026
9 checks passed
@unjica unjica mentioned this pull request Sep 26, 2026
2 tasks done
cursor Bot added a commit that referenced this pull request Sep 26, 2026
* fix(docs): Next.js App Router setup and hosted ingest (TT-002/TT-003) (#696)

* fix(docs): Next.js App Router setup and hosted ingest (TT-002/TT-003)

Replace the non-compiling /docs/nextjs layout snippet with the shared
server layout + client TrackPageView pattern, document apiKey and the
hosted ingest URL/env vars, and drop stale claims that /server is
unpublished. Align /error-tracking/nextjs and /docs/hosted-cloud.

Co-authored-by: Sanja Malovic <[email protected]>

* docs: note TT-002/TT-003 Next.js guide fixes in CHANGELOG

Co-authored-by: Sanja Malovic <[email protected]>

* docs(nextjs): mark docs-check and server setup as optional

Clarify that browser env / layout / TrackPageView are the keepable
setup; docs-check helpers and instrumentation.ts are optional
verification or server-only additions, with TELEMETRY_* separate from
NEXT_PUBLIC_*.

Co-authored-by: Sanja Malovic <[email protected]>

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Sanja Malovic <[email protected]>

* chore(release): prepare v1.17.24

Promote Unreleased Next.js docs fixes (TT-002/TT-003) to the 1.17.24
changelog section and regenerate API_VERSION.

Co-authored-by: Sanja Malovic <[email protected]>

---------

Co-authored-by: cursor[bot] <206951365+cursor[bot]@users.noreply.github.com>
Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Sanja Malovic <[email protected]>
cursor Bot added a commit that referenced this pull request Sep 26, 2026
* fix(docs): Next.js App Router setup and hosted ingest (TT-002/TT-003) (#696)

* fix(docs): Next.js App Router setup and hosted ingest (TT-002/TT-003)

Replace the non-compiling /docs/nextjs layout snippet with the shared
server layout + client TrackPageView pattern, document apiKey and the
hosted ingest URL/env vars, and drop stale claims that /server is
unpublished. Align /error-tracking/nextjs and /docs/hosted-cloud.



* docs: note TT-002/TT-003 Next.js guide fixes in CHANGELOG



* docs(nextjs): mark docs-check and server setup as optional

Clarify that browser env / layout / TrackPageView are the keepable
setup; docs-check helpers and instrumentation.ts are optional
verification or server-only additions, with TELEMETRY_* separate from
NEXT_PUBLIC_*.



---------




* chore(release): prepare v1.17.24

Promote Unreleased Next.js docs fixes (TT-002/TT-003) to the 1.17.24
changelog section and regenerate API_VERSION.



---------

Co-authored-by: cursor[bot] <206951365+cursor[bot]@users.noreply.github.com>
Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: Sanja Malovic <[email protected]>
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.

2 participants