Skip to content

TT-005: Source-map upload docs: documented Next.js path fails on a default app (partially fixed) #704

Closed

Description

@unjica

Severity: P2 · Area: Source maps · Found by: QA

Summary

Source-map upload is a headline feature but had no public docs, no Next.js path, and the docs referenced a CLI (@telemetry-tracker/cli) that 404s on npm. Partially fixed: /docs/source-maps, a Next.js section and a public GitHub Action now exist and symbolication works, but the documented Next.js path still fails on a default app.

Environment and versions

First seen 2026-09-25 (API 1.17.17). Retested 2026-09-26 09:54–10:02 CEST on API 1.17.23 with a fresh Next 16.3.6 app, @telemetry-tracker/[email protected], and the Action Telemetry-Tracker/telemetry-tracker/.github/actions/upload-source-maps@main. Docs/UI recheck on API 1.17.24 at 10:33 CEST (no upload).

Steps to reproduce

  1. npx create-next-app@latest sm-check --ts --app --yes && cd sm-check && npm i @telemetry-tracker/next@latest
  2. Apply only what /docs/source-maps and /docs/nextjs say (including the release string), build.
  3. Run the Action's upload.cjs with the documented inputs (artifact_path: .next, project_id, a CI key with source-map upload enabled).

Expected

The documented steps produce browser source maps, upload only those within the Free quota, and errors from client components symbolicate. The project ID the docs ask for can be found in the UI.

Actual

Fixed since 2026-09-25: /docs/source-maps exists (sitemap, sidebar, hosted-cloud step 4) with a Next.js section; the Action is public and works (1 real upload → 201); ingest-only key → 403, CI key → 201; errors at the same release symbolicate to the original app/*.tsx file and line; the CLI reference is gone.

Still failing (2/2, unchanged on 1.17.24):

  1. The docs never mention productionBrowserSourceMaps: true, so a default Next 16 build has 0 browser maps and artifact_path: .next would upload only server maps (34 in a hello-world app), which browsers never load.
  2. With browser maps enabled, the Action uploads everything under .next (44 maps for a hello-world app) against a Free quota of 25 artifacts per project across all releases, so the first release would hit the storage limit (inferred from a dry run and the code; not run for real to protect the quota). The quota isn't mentioned in the docs or on /pricing.
  3. The required project_id ("your-project-uuid") isn't shown anywhere in the dashboard, and the API returns 400 without X-Project-Id even though the key identifies its project.
  4. Settings → Source maps still says "Upload via POST /api/project/source-maps (EDITOR+ session). See docs/source-maps.md" (a repo path, no link to /docs/source-maps).

Acceptance criteria

  • The project ID is visible and copyable in the UI (or the upload derives the project from the key).
  • Following the docs, .next/static/chunks/*.js contain sourceMappingURL.
  • The Action uploads only browser maps (≤ 15 for a starter app) and exits 0 on a fresh Free project.
  • An error thrown from a client component at that release shows symbolication_status: symbolicated with the original app/*.tsx file and line.
  • Settings → Source maps links to /docs/source-maps and no longer says "EDITOR+ session".

Fix references

  • Partial fixes landed between 2026-09-25 and 2026-09-26 (public /docs/source-maps page, Action path); the specific PRs/commits are not recorded in the QA sources.

History

  • 2026-09-25: first reported (no public docs; CLI 404).
  • 2026-09-26 09:54–10:02 CEST: partially fixed on 1.17.23 (4 items still failing).
  • 2026-09-26 10:33 CEST: the 4 items unchanged on 1.17.24.

Migrated from the QA regression list on 2026-09-26. Source: QA reports 2026-09-25-baseline-public.md, 2026-09-26-sweep.md (#tt-005).

Activity

  1. added
    bug
    documentation
    qa
    on Sep 26, 2026
  2. unjica commented on Oct 11, 2026

    @unjica
    CollaboratorAuthor

    Tracking note: the deferred live source-map matrix (Next.js 15 webpack, Next.js 16 Turbopack, Vercel, plain Node) from closed #691 is already stated as not executed in docs/source-maps.md; track the live runs here.

  3. added
    triage:critical
    on Oct 16, 2026
  4. added a commit that references this issue on Oct 16, 2026
  5. reopened this on Oct 16, 2026
  6. unjica commented on Oct 16, 2026

    @unjica
    CollaboratorAuthor

    Fixed in #807, released in v1.22.4: /docs/source-maps documents productionBrowserSourceMaps, artifact_path .next/static + base_url …/_next/static (browser maps only) and plan quotas (Free 25); X-Project-Id is optional for API-key uploads; Settings → Source maps shows a copyable Project ID and links to /docs/source-maps. The live Next 16 upload run is with QA; reopen if it fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdocumentationqatriage:critical

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions