From 52ff914318f4ce57cfb31072c822b780bcd6e4ee Mon Sep 17 00:00:00 2001 From: RulaKhaled Date: Tue, 6 May 2025 10:51:16 +0200 Subject: [PATCH] docs(react-router): Update source maps section for a PR --- docs/platforms/javascript/guides/react-router/index.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/platforms/javascript/guides/react-router/index.mdx b/docs/platforms/javascript/guides/react-router/index.mdx index 6b8eb8236f1b4..21937c914a97b 100644 --- a/docs/platforms/javascript/guides/react-router/index.mdx +++ b/docs/platforms/javascript/guides/react-router/index.mdx @@ -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: @@ -338,7 +338,6 @@ const sentryConfig: SentryReactRouterBuildOptions = { export default defineConfig(config => { return { + plugins: [reactRouter(),sentryReactRouter(sentryConfig, config)], -+ sentryConfig, // Also pass the config here! }; }); ```