Skip to content

docs(react-router): Update source maps section for a PR #13610

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
merged 1 commit into from
May 8, 2025
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