Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/platforms/javascript/guides/react-router/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ Update the `start` and `dev` script to include the instrumentation file:

## Source Maps Upload

Update `vite.config.ts` to include the `sentryReactRouter` plugin. Also add your `SentryReactRouterBuildOptions` config options to the Vite config (this is required for uploading source maps at the end of the build):
Update `vite.config.ts` to include the `sentryReactRouter` plugin, making sure to pass both the Vite and Sentry configurations to it:

<OrgAuthTokenNote />

Expand All @@ -338,7 +338,6 @@ const sentryConfig: SentryReactRouterBuildOptions = {
export default defineConfig(config => {
return {
+ plugins: [reactRouter(),sentryReactRouter(sentryConfig, config)],
+ sentryConfig, // Also pass the config here!
};
});
```
Expand Down