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
Copy file name to clipboardExpand all lines: docs/platforms/javascript/guides/react-router/index.mdx
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -373,6 +373,24 @@ Update the `start` and `dev` script to include the instrumentation file:
373
373
}
374
374
```
375
375
376
+
#### Alternative Setup for Hosting Platforms
377
+
378
+
If you're deploying to platforms like **Vercel** or **Netlify** where setting the `NODE_OPTIONS` import flag is not possible, you can import the instrumentation file directly at the top of your `entry.server.tsx`:
When importing the instrumentation file directly in `entry.server.tsx` instead of using the `--import` flag, automatic instrumentation will be incomplete and you'll miss automatically captured spans and traces for some of your application's server-side operations. This approach should only be used when the `NODE_OPTIONS` approach is not available on your hosting platform.
391
+
392
+
</Alert>
393
+
376
394
## Source Maps Upload
377
395
378
396
Update `vite.config.ts` to include the `sentryReactRouter` plugin, making sure to pass both the Vite and Sentry configurations to it:
0 commit comments