Skip to content

test(nitro): Move tunnel e2e tests into a dedicated nitro-3-tunnel app - #26384

Merged
mydea merged 2 commits into
developfrom
test/e2e-nitro-3-tunnel
Nov 16, 2026
Merged

mydea merged 2 commits into
developfrom
test/e2e-nitro-3-tunnel

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

What

Replaces the nitro-3 (tunnel-basepath) and nitro-3 (tunnel-basepath-dev) variants with a minimal nitro-3-tunnel app that always serves the managed tunnel under /app, prod and dev in one job. The tunnel checks move into a shared runManagedTunnelSuite (@sentry-internal/test-utils/tunnel-suite), and nitro-3 drops its tunnel toggles.

Why

The variants rebuilt the whole nitro-3 app twice just to run one spec, and the env-gated config leaked into the default app. A tiny app is cheaper to build, and the shared suite gives every framework the same checks instead of slightly different hand-written ones.

This is the first PR of a stack. Each follow-up moves one framework (Nuxt, SolidStart, React Router, SvelteKit, Astro, TanStack Start, Remix) onto its own <framework>-tunnel app and extends the suite where that framework needs it.

The suite is its own entry point so the event proxy and Playwright configs, which import the main entry, don't load @playwright/test.

via @mydea.

--

View Session [Sentry]

The nitro-3 tunnel-basepath variants built the full nitro-3 app twice just to
run the tunnel spec. A minimal app that always serves the managed tunnel under
a base path covers the same cases in one job, and the checks now live in a
shared suite in @sentry-internal/test-utils that the other frameworks can reuse.

Co-Authored-By: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: 4cedb36 (PR test merge using develop at c0501fc)

Against: c0501fc (develop) · base run #66145

✅ Baseline matches: this diff contains only this PR's changes.

Path Size % Change Change
@sentry/browser 30.1 kB - -
@sentry/browser - with treeshaking flags 28.3 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 28.2 kB - -
@sentry/browser (incl. Tracing) 52.28 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 52.29 kB - -
@sentry/browser (incl. Tracing, Profiling) 55.25 kB - -
@sentry/browser (incl. Tracing, Replay) 92.82 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 81.6 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 97.21 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 110.6 kB - -
@sentry/browser (incl. Feedback) 47.73 kB - -
@sentry/browser (incl. sendFeedback) 30.69 kB - -
@sentry/browser (incl. FeedbackAsync) 35.69 kB - -
@sentry/browser (incl. Metrics) 31.43 kB - -
@sentry/browser (incl. Logs) 31.71 kB - -
@sentry/browser (incl. Metrics & Logs) 32.37 kB - -
@sentry/react 32.11 kB - -
@sentry/react (incl. Tracing) 54.95 kB - -
@sentry/vue 38.3 kB - -
@sentry/vue (incl. Tracing) 55.24 kB - -
@sentry/svelte 30.12 kB - -
@sentry/remix (Remix 3 client bundle) 58.06 kB - -
CDN Bundle 31.87 kB - -
CDN Bundle (incl. Tracing) 52.7 kB - -
CDN Bundle (incl. Logs, Metrics) 34.67 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 55.26 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 75.7 kB - -
CDN Bundle (incl. Tracing, Replay) 90.72 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 93.33 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 96.09 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 98.69 kB - -
CDN Bundle - uncompressed 92.98 kB - -
CDN Bundle (incl. Tracing) - uncompressed 155.45 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 101.33 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 163.08 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 231.44 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 275.61 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 283.24 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 287.4 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 295.02 kB - -
@sentry/nextjs (client) 58.37 kB - -
@sentry/sveltekit (client) 53.48 kB - -
@sentry/core/server 44.73 kB - -
@sentry/core/browser 14.3 kB - -
@sentry/node 150.46 kB -0.01% -9 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.3 kB - -
@sentry/node - without tracing 88.55 kB -0.01% -5 B 🔽
@sentry/node - without channel injection 139.42 kB -0.01% -7 B 🔽
@sentry/aws-serverless 98.46 kB -0.01% -3 B 🔽
@sentry/cloudflare (withSentry) - minified 205.19 kB - -
@sentry/cloudflare (withSentry) 475.96 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 230.5 kB - -

View base workflow run

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Optional E2E tests

Some optional checks were not successful. They do not block the merge. 4 not successful, 55 successful. See the run.

Check Status
❌ CI: Optional E2E Tests / E2E nextjs-16-cacheComponents (cloudflare) Test (optional) Failing after 11m Details
❌ CI: Optional E2E Tests / E2E node-eve (latest) Test (optional) Failing after 2m Details
❌ CI: Optional E2E Tests / E2E node-eve Test (optional) Failing after 2m Details
❌ CI: Optional E2E Tests / E2E node-eve (orchestrion) Test (optional) Failing after 2m Details
Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E astro-7-static Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-think (ai v6) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-workers-send-to-sentry Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries (latest) Test (optional) Successful in 51s Details
✅ CI: Optional E2E Tests / E2E cloudflare-flue-send-to-sentry Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v1 Test (optional) Successful in 26s Details
✅ CI: Optional E2E Tests / E2E cloudflare-mastra Test (optional) Successful in 46s Details
✅ CI: Optional E2E Tests / E2E solidstart-2 Test (optional) Successful in 55s Details
✅ CI: Optional E2E Tests / E2E react-router-7-framework-instrumentation Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nestjs-12 (bun) Test (optional) Successful in 46s Details
✅ CI: Optional E2E Tests / E2E nestjs-12 (deno) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-agent Test (optional) Successful in 34s Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries Test (optional) Successful in 50s Details
✅ CI: Optional E2E Tests / E2E cloudflare-think Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E debug-id-sourcemaps Test (optional) Successful in 38s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-cloudflare Test (optional) Successful in 35s Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries (cloudflare) Test (optional) Successful in 45s Details
✅ CI: Optional E2E Tests / E2E astro-7 Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E vue-3 (no Options API) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16-tunnel (cloudflare) Test (optional) Successful in 58s Details
✅ CI: Optional E2E Tests / E2E supabase-nextjs Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext, bun) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (latest) Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps Test (optional) Successful in 31s Details
✅ CI: Optional E2E Tests / E2E nextjs-14 (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E deno (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-pi-durable Test (optional) Successful in 47s Details
✅ CI: Optional E2E Tests / E2E nestjs-12 (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (turbo) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (cloudflare, latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E cloudflare-pi-durable (latest) Test (optional) Successful in 52s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry-static Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nestjs-12 (cloudflare) Test (optional) Successful in 34s Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v2 Test (optional) Successful in 28s Details
✅ CI: Optional E2E Tests / E2E node-flue Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions Test (optional) Successful in 24s Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-pi-durable (latest) Test (optional) Successful in 33s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (static / nuxt generate) Test (optional) Successful in 33s Details
✅ CI: Optional E2E Tests / E2E node-mastra Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-mastra (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-fastify-6 Test (optional) Successful in 37s Details
✅ CI: Optional E2E Tests / E2E nuxt-5 (kv-cache) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-cloudflare Test (optional) Successful in 32s Details
✅ CI: Optional E2E Tests / E2E node-pi-durable Test (optional) Successful in 34s Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions (latest) Test (optional) Successful in 35s Details
✅ CI: Optional E2E Tests / E2E nextjs-orpc Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5 (tunnel-dev) Test (optional) Successful in 53s Details
✅ CI: Optional E2E Tests / E2E node-flue (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (client source maps kept) Test (optional) Successful in 34s Details
✅ CI: Optional E2E Tests / E2E react-send-to-sentry Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps Test (optional) Successful in 38s Details
✅ CI: Optional E2E Tests / E2E nuxt-5 Test (optional) Successful in 2m Details

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 47db088. Configure here.

…the tunnel suite

Co-Authored-By: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
@mydea
mydea merged commit 005db14 into develop Nov 16, 2026
446 of 450 checks passed
@mydea
mydea deleted the test/e2e-nitro-3-tunnel branch November 16, 2026 10:23
mydea added a commit that referenced this pull request Nov 16, 2026
…nel apps (#26390)

Stacked on #26384.

## What

Adds small `solidstart-1-tunnel` (SolidStart 1) and
`solidstart-2-tunnel` (SolidStart 2) apps that serve the managed tunnel
under `/app` and run the shared tunnel suite in production and dev. The
`solidstart` and `solidstart-2` apps lose their tunnel variants, env
toggles, auth middleware branches and tunnel specs.

## Why

The tunnel variants built the full SolidStart apps twice just to run one
spec. The two versions stay separate apps because their base-path wiring
differs (`withSentry` plus the Nitro 2 tunnel plugin vs.
`sentrySolidStart` via `@sentry/nitro`'s runtime config).

The suite's `/app/api/anchor` and `/app/api/error` routes are not
SolidStart API routes. SolidStart 1 doesn't match API routes under
`server.baseURL`, so the v1 app answers them in its middleware and
captures the error itself. On v2, errors thrown in SolidStart API routes
never reach Nitro's `error` hook, so Sentry doesn't capture them, and
the v2 app serves both as Nitro routes. Open question: should either SDK
gap get its own issue?

<!-- junior-request-attribution:start -->
via @mydea.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A3e03850793a01d35dade55a86ada26ac -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A3e03850793a01d35dade55a86ada26ac)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A3e03850793a01d35dade55a86ada26ac/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
mydea added a commit that referenced this pull request Nov 16, 2026
…unnel app (#26386)

Stacked on #26384.

## What

Adds a minimal `sveltekit-3-tunnel` app that runs the shared
managed-tunnel suite under `/app`. It runs on Node with Kit tracing by
default and has a `cloudflare` runtime variant, and each one runs prod
and dev in one job. The tunnel variants, env toggles, base path switch
and tunnel specs are gone from `sveltekit-3` and
`sveltekit-3-cloudflare-workers`.

## Why

The old variants rebuilt both full apps just to run one tunnel spec
each. The suite gets an optional `isTunnelSpan` matcher, because Kit's
own `sveltekit.handle.root` span has only `http.url` and no `url.path`,
and a tunnel span would otherwise slip past it. The defaults don't
change.

Open questions:
- On Node, the SDK's http layer answers tunnel requests before Kit sees
them, so `sentryHandle`'s own tunnel branch, and the Kit-span case the
new matcher guards, only come into play if that intercept stops claiming
the request. The old spec had the same gap.
- The Cloudflare variant's dev pass runs `vite dev` on Node, not
workerd. It's cheap, but it could be dropped to keep that variant
prod-only like before.

<!-- junior-request-attribution:start -->
via @mydea.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A7b09a6367b6648205ef5698781967020 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A7b09a6367b6648205ef5698781967020)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A7b09a6367b6648205ef5698781967020/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
mydea added a commit that referenced this pull request Nov 16, 2026
…stackstart-react-tunnel app (#26389)

Stacked on #26384.

## What

A small `tanstackstart-react-tunnel` app, served under `/app`, replaces
the tunnel variants of `tanstackstart-react` and the unused tunnel
scripts of `tanstackstart-react-static`. It also checks a custom
`createSentryTunnelRoute` route and, in a second variant, a fixed
`tunnelRoute` path.

## Why

Each tunnel variant built the whole `tanstackstart-react` app for one
file. The `object` form of `tunnelRoute` maps to the same server options
as a fixed path, so it gets no variant of its own.

Open questions:
- Under `vite dev`, a custom `createSentryTunnelRoute` route sends an
`http.server` span for every request, not only the first. Likely the
span is created outside of where the route registers its `ignoreSpans`,
but that is unconfirmed, so that case is marked fixme in dev.
- Should the default variant use `tunnel: true` plus
`serveTunnelIntegration()`, which replace the deprecated `tunnelRoute`?
- The tunnel file in `tanstackstart-react-cloudflare` stays, since
moving it would pull the Cloudflare toolchain into this app.

<!-- junior-request-attribution:start -->
via @mydea.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3Aec0a98dc003ea8f5e5b5e8d0da611ffe -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3Aec0a98dc003ea8f5e5b5e8d0da611ffe)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3Aec0a98dc003ea8f5e5b5e8d0da611ffe/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
mydea added a commit that referenced this pull request Nov 16, 2026
…26392)

Stacked on #26384.

## What

Adds a minimal `astro-7-tunnel` app that runs the shared managed tunnel
suite, plus a check that the tunnel answers when the first page is
prerendered. It runs on Node (prod and dev, under `/docs` with
`trailingSlash: 'always'`), on Cloudflare Workers (`runtime:
"cloudflare"`), and on Cloudflare Pages. The tunnel variants, toggles,
middleware and specs are removed from `astro-7`, `astro-6-cf-workers`
and `astro-5-cf-pages`. The suite gets an optional `trailingSlash`.

## Why

Each legacy variant built a full app just to run one tunnel spec. Astro
6 Workers is not kept on its own: `@sentry/astro` has no Astro-version
gate in its tunnel code, and `@astrojs/cloudflare` 13 and 14 both build
through `@cloudflare/vite-plugin`. So Astro 7 Workers, with the same
`@sentry/cloudflare/vite` + `instrument.server.js` setup, runs the same
path. Pages is kept as a variant that pins Astro 5 and
`@astrojs/cloudflare` 12. Adapter 13 dropped Pages, and Pages goes
through its own path in the SDK: Pages detection, the v12
`astrojs-ssr-virtual-entry` wrap, and the `@sentry/astro` worker init.
It stays at the root path like before, so the no-base-path case is still
covered.

Open questions:
- The Pages variant has no prerendered page. With `@sentry/astro`, an
Astro 5 + `@astrojs/cloudflare` 12 build fails while it prerenders
(`Received protocol 'cloudflare:'`, from the `cloudflare:workers` import
in `index.workerd`). Without the Sentry integration the same build
works. That looks like an SDK bug to handle separately.
- `astro-7` is `optional`, so its tunnel variant was too.
`astro-7-tunnel` is required. Should it be optional instead?
- The Workers build deletes `sentry.server.config.js`, so only
`instrument.server.js` inits the server SDK, the way
`astro-6-cf-workers` is set up.

<!-- junior-request-attribution:start -->
via @mydea.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A35f1dcbc5c51c94917e7e78d3ffaf0aa -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A35f1dcbc5c51c94917e7e78d3ffaf0aa)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A35f1dcbc5c51c94917e7e78d3ffaf0aa/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
mydea added a commit that referenced this pull request Nov 16, 2026
…er-8-tunnel app (#26388)

Stacked on #26384.

## What

The React Router managed-tunnel e2e tests move to a small
`react-router-8-tunnel` app. It serves under `basename: '/app/'` and
uses the shared tunnel suite, on Node and on a Cloudflare runtime
variant. The tunnel variants, env toggles, root auth middleware and
tunnel spec are removed from `react-router-8-framework`.

## Why

The old variants built the full framework app three times to run one
spec. The Node server keeps a second `allowedDsns` entry, so the tunnel
still runs with more than one path.

Open question: the Cloudflare variant runs only against the production
build. Under `react-router dev` with the Cloudflare Vite plugin, the
worker serves the tunnel at `/qpo967` and not at `/app/qpo967`, so the
basename doesn't reach the tunnel in dev. The old setup never ran
Cloudflare in dev. Should this be fixed in the SDK, or is
production-only fine for Cloudflare?

<!-- junior-request-attribution:start -->
via @mydea.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A9ec15611858c2db4fb8e6e0b6cd9c72d -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A9ec15611858c2db4fb8e6e0b6cd9c72d)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A9ec15611858c2db4fb8e6e0b6cd9c72d/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
mydea added a commit that referenced this pull request Nov 16, 2026
…pp (#26391)

Stacked on #26384.

## What

The Remix v3 managed tunnel e2e tests move into a small
`remix-v3-tunnel` app that runs the shared tunnel suite, once with
`createRequestListener` and once with a bare `node:http` listener.
`remix-v3` drops its tunnel variants, env toggles, handler and
middleware branches, and its tunnel spec.

## Why

The two `remix-v3` tunnel variants installed the whole app again just to
run one spec, and their toggles leaked into its server, router and
browser entry. The new app rejects every POST ahead of the router in
both setups. The old 403 handler and 401 middleware become one blocker.

Open question: in both setups the `node:http` interception answers the
tunnel before `sentryRemixMiddleware` can. Should the router
middleware's own tunnel handling get a separate case, for example with
`serveTunnelIntegration({ intercept: false })`?

<!-- junior-request-attribution:start -->
via @mydea.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A84e2d1ee0f8dc23c572c39d2c181d13d -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A84e2d1ee0f8dc23c572c39d2c181d13d)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A84e2d1ee0f8dc23c572c39d2c181d13d/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
mydea added a commit that referenced this pull request Nov 16, 2026
…6393)

Stacked on #26384.

## What

Adds small `nuxt-4-tunnel` and `nuxt-5-tunnel` apps for the shared
managed tunnel suite, served under a base URL on Node, with Cloudflare
as a `runtime` variant. The tunnel variants, toggles and middleware
branches come out of `nuxt-4`, `nuxt-4-cloudflare`, `nuxt-5` and
`nuxt-5-cloudflare`.

## Why

The tunnel variants built the full Nuxt apps just for one spec. Each
Nuxt line keeps its own app because the tunnel wiring differs (Nitro v2,
Nitro v3, `sentryCloudflareNitroPlugin`).

**Open questions:**

- On Nuxt 4 with Cloudflare, the managed tunnel isn't answered before an
app middleware that rejects POSTs. On Nitro v2,
`sentryCloudflareNitroPlugin` checks for a tunnel request before the SDK
has a client, so it drops the body, and the SDK skips tunnel requests
without one. The old `nuxt-4-cloudflare` tunnel spec had no such
middleware, so the Nuxt renderer answered with a 200 and hid the bug.
The suite is marked `fixme` there for now. Should the SDK fix go in this
PR or in a separate one?
- The check that a non-tunnel POST body stays off its error event only
ran on Nuxt 4 with Cloudflare, and it stays there. On Nuxt 5 with
Cloudflare, that body does end up on the event. Is that intended?

<!-- junior-request-attribution:start -->
via @mydea.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3Ac13b30878f45b76347b159d72cec415f -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3Ac13b30878f45b76347b159d72cec415f)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3Ac13b30878f45b76347b159d72cec415f/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
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