You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(tanstackstart-react): update docs after devinxi (#14036)
## Upgrade TanStack Start React Docs after Vinxi has been removed
Apply the necessary upgrades as described in the [TSS
migration](TanStack/router#2863 (comment)).
Regards:
- getsentry/sentry-javascript#14990
- getsentry/sentry-javascript#16540
## IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs
to go live.
- [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE -->
- [ ] Other deadline: <!-- ENTER DATE HERE -->
- [x] None: Not urgent, can wait up to 1 week+
## SLA
- Teamwork makes the dream work, so please add a reviewer to your PRs.
- Please give the docs team up to 1 week to review your PR unless you've
added an urgent due date to it.
Thanks in advance for your help!
## PRE-MERGE CHECKLIST
*Make sure you've checked the following before merging your changes:*
- [ ] Checked Vercel preview for correctness, including links
- [ ] PR was reviewed and approved by any necessary SMEs (subject matter
experts)
- [ ] PR was reviewed and approved by a member of the [Sentry docs
team](https://github.com/orgs/getsentry/teams/docs)
## LEGAL BOILERPLATE
<!-- Sentry employees and contractors can delete or ignore this section.
-->
Look, I get it. The entity doing business as "Sentry" was incorporated
in the State of Delaware in 2015 as Functional Software, Inc. and is
gonna need some rights from me in order to utilize my contributions in
this here PR. So here's the deal: I retain all rights, title and
interest in and to my contributions, and by keeping this boilerplate
intact I confirm that Sentry can use, modify, copy, and redistribute my
contributions, under Sentry's choice of terms.
## EXTRA RESOURCES
- [Sentry Docs contributor guide](https://docs.sentry.io/contributing/)
// Only print logs for uploading source maps in CI
50
-
// Set to `true` to suppress logs
51
-
silent: !process.env.CI,
52
-
});
53
-
```
54
-
55
-
{/* TODO(lforst): Remove "in future versions of this SDK," */}
56
-
57
-
In future versions of this SDK, setting the `SENTRY_AUTH_TOKEN` environment variable will upload sourcemaps for you to see unminified errors in Sentry:
58
-
59
-
```sh {filename:.env}
60
-
SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___
61
-
```
62
-
63
-
<Alertlevel="warning"title="Important">
64
-
65
-
Make sure to keep your auth token secret and out of version control.
66
-
67
-
</Alert>
68
-
69
-
Add the following initialization code to your `app/client.tsx` file to initialize Sentry on the client:
Wrap TanStack Start's `defaultStreamHandler` function using `wrapStreamHandlerWithSentry` to instrument requests to your server:
169
134
170
-
```tsx {filename:app/ssr.tsx} {12}
135
+
```tsx {filename:src/server.tsx} {12}
171
136
import {
172
137
createStartHandler,
173
138
defaultStreamHandler,
@@ -186,11 +151,11 @@ Add the `sentryGlobalServerMiddlewareHandler` to your global middlewares to inst
186
151
187
152
<Alertlevel="info">
188
153
189
-
If you haven't done so, create a `app/global-middleware.ts` file as outlined in the [TanStack Start Docs for Global Middleware](https://tanstack.com/start/latest/docs/framework/react/middleware#global-middleware).
154
+
If you haven't done so, create a `src/global-middleware.ts` file as outlined in the [TanStack Start Docs for Global Middleware](https://tanstack.com/start/latest/docs/framework/react/middleware#global-middleware).
190
155
191
156
</Alert>
192
157
193
-
```ts {filename:app/global-middleware.ts}
158
+
```ts {filename:src/global-middleware.ts}
194
159
import {
195
160
createMiddleware,
196
161
registerGlobalMiddleware,
@@ -199,7 +164,7 @@ import * as Sentry from "@sentry/tanstackstart-react";
0 commit comments