Repository navigation
Conversation
size-limit report 📦
|
2202cda to
46e486c
Compare
9069686 to
b589186
Compare
a5fcc1b to
f2a6beb
Compare
722f4c6 to
eec9ddf
Compare
|
bugbot run |
eec9ddf to
8d3dee9
Compare
|
bugbot run |
1 similar comment
|
bugbot run |
8d3dee9 to
8c6c1fa
Compare
6b24a7b to
64c909f
Compare
c1c3595 to
58c71ae
Compare
…ntry
The Vite plugin now wraps the app's server entry, so `Sentry.init({ tunnel: true })`
works with no build option and tunnel requests are answered before Start's
request middleware and routing. Every `tunnelRoute` form is served the same way:
`true` uses the DSN-derived path instead of a random one per build, and a static
path no longer patches the generated route tree.
…th Start routes on
…nel's server entry wrapper
…lides with an app route, as on develop
…and serve it from there
…ith setManagedTunnelDefaults
…equests The tunnel handler now answers a request without one with a 411.
…ants, which other variants already cover
…the client tests that repeat core's
58c71ae to
cdbac44
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit cdbac44. Configure here.
| const serialized = defined?.define?.__SENTRY_TANSTACKSTART_TUNNEL_ROUTE__; | ||
| expect(typeof serialized).toBe('string'); | ||
| expect(serialized).toMatch(/^"\/[a-z0-9]{8}"$/); | ||
| expect(options._managedTunnel).toEqual({ basePath: '/app' }); |
There was a problem hiding this comment.
Vite tests leak tunnel defaults
Low Severity
The new configureServer tests call setManagedTunnelDefaults (via the plugin) but never reset that module-level state. Sibling wrap tests already use _INTERNAL_resetManagedTunnelDefaults in afterEach. Leftover tunnel/basePath defaults can bleed into later files in the same Vitest worker and flake assertions about which path is served. Flagged because the review rules call out tests that are likely to flake.
Triggered by project rule: PR Review Guidelines for Cursor Bot
Reviewed by Cursor Bugbot for commit cdbac44. Configure here.


TanStack Start picked a random tunnel path per build and patched the generated route tree to serve it.
Because the new approach relies less on build-time, the logic was changed to wrap the server entrypoint instead and only route the matching tunnel requests to our handler.
This isn't a breaking change, previously we injected a single endpoint handler, now we inject a middleware since the DSN is only known at runtime.
closes #25461