Repository navigation
feat(tanstackstart-react): Serve the managed tunnel from the server entry #25408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
logaretm
merged 23 commits into
awad/tunnel-browser-managed
from
awad/tunnel-tanstackstart
Oct 27, 2026
+744
−289
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
1af8f48
feat(tanstackstart-react): Serve the managed tunnel from the server e…
logaretm d042461
feat(tanstackstart-react): Serve the managed tunnel under the base pa…
logaretm 07ee6b2
fix(tanstackstart-react): Drop the tunnel's spans from the Vite dev s…
logaretm 28acf34
fix(tanstackstart-react): Normalize the tunnel base path with the cor…
logaretm 998046c
fix(tanstackstart-react): Pass a Worker's env and ctx through the tun…
logaretm 1a03d84
fix(tanstackstart-react): Fail the build when a fixed tunnelRoute col…
logaretm 92f4f82
docs(tanstackstart-react): Describe how tunnelRoute is served now
logaretm 7351b68
ref(tanstackstart-react): Enable tunnelRoute on the client like init …
logaretm 2a72e60
ref(tanstackstart-react): Report tunnelRoute and the base path once w…
logaretm 668962b
test(tanstackstart-react): Send Content-Length with the tunnel test r…
logaretm 9f15930
test(tanstackstart-react): Drop the tunnel-dev and tunnel-object vari…
logaretm 32ff829
ref(tanstackstart-react): Let core skip an empty base path, and drop …
logaretm 8c3eeaa
ref: Import the internal tunnel helpers under their `_INTERNAL_` names
logaretm 1cde77e
ref(tanstackstart-react): Type the tunnel route options as server tun…
logaretm 45af129
test: Stop checking the removed `X-Sentry-Tunnel` header
logaretm 183bdc0
ref(tanstackstart-react): Pass the tunnel forwarder along with `tunne…
logaretm 3c1bb08
docs(tanstackstart-react): Point `tunnelRoute` at `serveTunnelIntegra…
logaretm 649ead6
fix(tanstackstart-react): Resolve the SDK from the app when wrapping …
logaretm 98fa30b
fix(tanstackstart-react): Keep the server entry's prototype when wrap…
logaretm 3826f0b
ref(tanstackstart-react): Export the server entry wrapper as `_INTERN…
logaretm 9ad8395
ref(tanstackstart-react): Require the base path getter of the server …
logaretm 79f6c8a
fix(tanstackstart-react): Keep rejecting non-POST requests to a stati…
logaretm fc3d34e
fix(tanstackstart-react): Reject non-POST requests to every managed t…
logaretm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
dev-packages/e2e-tests/test-applications/tanstackstart-react-cloudflare/tests/tunnel.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| import { expect, test } from '@playwright/test'; | ||
|
|
||
| test("keeps the Worker's ExecutionContext when the Sentry Vite plugin wraps the server entry", async ({ request }) => { | ||
| const response = await request.get('/test-execution-context'); | ||
|
|
||
| expect(await response.text()).toBe('function'); | ||
| }); | ||
|
|
||
| test('answers a fixed tunnelRoute with the DSN that `withSentry` initializes', async ({ request }) => { | ||
| // A DSN the server doesn't allow, so the tunnel answers without forwarding anywhere. | ||
| const envelopeHeader = { dsn: 'https://other@o1.ingest.sentry.io/42', sent_at: new Date().toISOString() }; | ||
| const response = await request.post('/monitoring', { | ||
| data: `${JSON.stringify(envelopeHeader)}\n`, | ||
| headers: { 'Content-Type': 'application/x-sentry-envelope' }, | ||
| }); | ||
|
|
||
| expect(response.status()).toBe(403); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.