Skip to content

fix(solidstart): Serve the managed tunnel under Vite's base on SolidStart 2 - #25848

Merged
logaretm merged 1 commit into
developfrom
awad/solidstart-2-tunnel-base-path
Oct 29, 2026
Merged

logaretm merged 1 commit into
developfrom
awad/solidstart-2-tunnel-base-path

Conversation

@logaretm

@logaretm logaretm commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

On SolidStart 2 the managed tunnel ignored Vite's base, so behind a proxy that only forwards the base path the browser's envelopes never arrived. This is the last hold out.

This is fixed by passing the base path to the browser and to @sentry/nitro through Nitro's runtime config. I added tunnel e2e variants for prod and dev under /app, and the prod one fails before the fix.

closes #25467

…tart 2

SolidStart 2 serves the app under Vite's `base`, but the browser fell back
to the root and the server used Nitro's `baseURL`, so behind a proxy that
only forwards the base path the tunnel requests never arrived.
`sentrySolidStart()` now defines the base path for the browser and sets it as
Nitro's `sentryTunnelBasePath` runtime config, which `@sentry/nitro` serves
the tunnel under instead of `baseURL`.
@github-actions

Copy link
Copy Markdown
Contributor

Optional E2E tests

All optional checks were successful. 1 successful. See the run.

Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E solidstart-2 Test (optional) Successful in 39s Details

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: 30227fc (PR test merge using develop at 02d3290)

Against: 02d3290 (develop) · base run #64011

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

Path Size % Change Change
@sentry/browser 30.34 kB - -
@sentry/browser - with treeshaking flags 28.46 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 28.35 kB - -
@sentry/browser (incl. Tracing) 52.61 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 52.61 kB - -
@sentry/browser (incl. Tracing, Profiling) 55.54 kB - -
@sentry/browser (incl. Tracing, Replay) 92.81 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 81.43 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 97.54 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 110.52 kB - -
@sentry/browser (incl. Feedback) 47.9 kB - -
@sentry/browser (incl. sendFeedback) 35.42 kB - -
@sentry/browser (incl. FeedbackAsync) 40.52 kB - -
@sentry/browser (incl. Metrics) 31.35 kB - -
@sentry/browser (incl. Logs) 31.63 kB - -
@sentry/browser (incl. Metrics & Logs) 32.31 kB - -
@sentry/react 32.16 kB - -
@sentry/react (incl. Tracing) 54.89 kB - -
@sentry/vue 38.61 kB - -
@sentry/vue (incl. Tracing) 55.5 kB - -
@sentry/svelte 30.37 kB - -
@sentry/remix (Remix 3 client bundle) 57.65 kB - -
CDN Bundle 32.07 kB - -
CDN Bundle (incl. Tracing) 53.1 kB - -
CDN Bundle (incl. Logs, Metrics) 34.27 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 55.05 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 75.69 kB - -
CDN Bundle (incl. Tracing, Replay) 91.23 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 93.17 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 97.36 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 99.34 kB - -
CDN Bundle - uncompressed 94.31 kB - -
CDN Bundle (incl. Tracing) - uncompressed 157.3 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.86 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 163.27 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 232.36 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 278.93 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 284.89 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 292.63 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 298.58 kB - -
@sentry/nextjs (client) 57.75 kB - -
@sentry/sveltekit (client) 53.06 kB - -
@sentry/core/server 44.29 kB - -
@sentry/core/browser 13.95 kB - -
@sentry/node 155.07 kB +0.02% +19 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 81.67 kB - -
@sentry/node - without tracing 95.8 kB +0.03% +26 B 🔺
@sentry/node - without channel injection 135.69 kB +0.02% +18 B 🔺
@sentry/aws-serverless 103.96 kB +0.03% +21 B 🔺
@sentry/cloudflare (withSentry) - minified 197.89 kB - -
@sentry/cloudflare (withSentry) 491.81 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 218.47 kB - -

View base workflow run

@logaretm

Copy link
Copy Markdown
Member Author

bugbot run

@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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 6719136. Configure here.

@logaretm
logaretm marked this pull request as ready for review October 28, 2026 17:45
@logaretm
logaretm requested review from a team as code owners October 28, 2026 17:45
@logaretm
logaretm requested review from Lms24, andreiborza, chargome, isaacs, msonnb and nicohrubec and removed request for a team October 28, 2026 17:45
@logaretm
logaretm merged commit 51248d4 into develop Oct 29, 2026
56 checks passed
@logaretm
logaretm deleted the awad/solidstart-2-tunnel-base-path branch October 29, 2026 13:54
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.

Apply the framework's base path to the managed tunnel automatically

3 participants