Skip to content

FE-M0-17 · The Sentry SDK in apps/web, off without a DSN

ID FE-M0-17 · Level L0 · Run order row 34a · Why D24, D10, D15 · Issue #173

On your Mac, from main, where pack F merged in #237: apps/web has @sentry/nextjs 11.7.0 in the browser, the server and the edge runtime, but it starts only where NEXT_PUBLIC_SENTRY_DSN is set, which is on Vercel, never on the Mac or in CI. A build without SENTRY_AUTH_TOKEN makes no browser source maps. Every unit test and Playwright spec passes, so the SDK changes nothing a user sees. This step changes no file: the code is on main.

  • Packs D, E, G and F are merged (#177, #199, #209, #237). Pack F used to ship as a zip that copied whole files over theirs; it is now a pull request built on main after them, and the zip of 2026-10-19 (075fa722…) is withdrawn.
  • TL-M0-22 doesn't have to be done yet: this step and the next run on the Mac, where there is no DSN.
  • Docker Desktop is running, the local stack is running, and apps/web/.env.local points at it (FE-M0-06). Nothing runs on ports 3000 or 3100.
  • You are in ~/opleet-v2/opleet and git status --short prints nothing.

1 · main, the database from its migrations, and the E2E logins

Section titled “1 · main, the database from its migrations, and the E2E logins”
Terminal window
git fetch origin
git switch main
git pull
pnpm install
pnpm supabase db reset
pnpm db:e2e-users

2 · The pinned version, then unit tests, typecheck and lint

Section titled “2 · The pinned version, then unit tests, typecheck and lint”
Terminal window
grep '"@sentry/nextjs"' apps/web/package.json
pnpm --filter web test
pnpm --filter web typecheck
pnpm lint
Terminal window
pnpm --filter web build
pnpm --filter web e2e
  • Block 1: pnpm ends with “Done”; “Finished supabase db reset”; then “11 logins in the E2E organization, all pools. .env.e2e updated (password not shown).”
  • Block 2: "@sentry/nextjs": "11.7.0",; then “ℹ tests 52” and “ℹ pass 52”, among them “✔ without a DSN there are no options, so Sentry never starts” and “✔ a request keeps its method and path only: no cookies, headers, body or query string”; typecheck with “Keys: 112. With English: 112. Without: 0.” and no errors (on main at 0d3f1b3; later merges may raise both numbers, and “Without: 0” is what matters); “No fixes applied.”
  • Block 3: the build lists ƒ /system/sentry among the routes and prints nothing about Sentry or source maps. Playwright ends with “34 passed”. Lines starting [WebServer] ⨯ Error: E2E fault: are pack G's forced failures, and expected.
Terminal window
find apps/web/.next/static -name '*.map' | wc -l
grep -c SENTRY apps/web/.env.local
git status --short

Expect: 0, so the browser gets no source maps; 0, so the Mac has no DSN and sends nothing; and nothing from git status. The SDK is in the build but never starts.

  • typecheck says withSentryConfig is not exported: next.config.ts must import it from @sentry/nextjs/config, as the branch's does. Version 11 moved it there.
  • The build fails on “Failed to fetch Inter Tight from Google Fonts”: the Mac was offline while building (FE-M0-16). Connect and run block 3 again.
  • The build prints “ACTION REQUIRED … onRouterTransitionStart”: next.config.ts is not the branch's. That hook is for tracing, which is off (D15).
  • A spec fails: run pnpm --filter web exec playwright show-report, and paste the failing test's name and error into #173. FE fixes it on a branch.
  • Check's first line prints more than 0: a build made source maps for the browser. Run env | grep -c SENTRY_AUTH_TOKEN: it must print 0 on the Mac. If it doesn't, unset SENTRY_AUTH_TOKEN and run block 3 again.
  • Check's second line prints more than 0: .env.local has a Sentry variable. Delete that line; only Vercel holds them (TL-M0-22).

Nothing to undo: the step changes no file. pnpm supabase db reset and pnpm db:e2e-users give the local database back.

Not run yet. Log each run as a comment on #173.