Skip to content

Commit e7e523c

Browse files
authored
docs(react-router): update sourcemaps buildEnd hook snippet (#12889)
1 parent e2a5582 commit e7e523c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform-includes/getting-started-sourcemaps/javascript.react-router.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ import { sentryOnBuildEnd } from '@sentry/react-router';
3434

3535
export default {
3636
ssr: true,
37-
buildEnd: ({ viteConfig, reactRouterConfig, buildManifest }) => {
37+
buildEnd: async ({ viteConfig, reactRouterConfig, buildManifest }) => {
3838
// ...
3939
// Call this at the end of the hook
40-
sentryOnBuildEnd({ viteConfig, reactRouterConfig, buildManifest });
40+
await sentryOnBuildEnd({ viteConfig, reactRouterConfig, buildManifest });
4141
},
4242
} satisfies Config;
4343
```

0 commit comments

Comments
 (0)