Skip to content

Commit 4cfb9eb

Browse files
committed
docs(tanstackstart-react): Add source maps quickstart instructions
1 parent cdb6544 commit 4cfb9eb

File tree

1 file changed

+8
-2
lines changed
  • docs/platforms/javascript/guides/tanstackstart-react

1 file changed

+8
-2
lines changed

docs/platforms/javascript/guides/tanstackstart-react/index.mdx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,17 @@ const route = createRoute({
226226
})
227227
```
228228

229-
## Step 4: Avoid Ad Blockers With Tunneling (Optional)
229+
## Step 4: Add Readable Stack Traces to Errors (Optional)
230+
231+
The stack traces in your Sentry errors probably won't look like your actual code. To fix this, upload your source maps to Sentry.
232+
233+
Since TanStack Start uses Vite, you can use the Sentry Vite plugin to automatically upload source maps. Follow the [Vite source maps guide](/platforms/javascript/sourcemaps/uploading/vite/) to set this up.
234+
235+
## Step 5: Avoid Ad Blockers With Tunneling (Optional)
230236

231237
<PlatformContent includePath="getting-started-tunneling" />
232238

233-
## Step 5: Verify
239+
## Step 6: Verify
234240

235241
Let's test your setup and confirm that Sentry is working correctly and sending data to your Sentry project.
236242

0 commit comments

Comments
 (0)