-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Next.js: How to export onRouterTransitionStart from instrumentation-client in case of tree-shaking? #16571
Unanswered
maslowivan
asked this question in
Q&A
Next.js: How to export onRouterTransitionStart from instrumentation-client in case of tree-shaking?
#16571
-
https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/tree-shaking/ has no information regarding exporting the captureRouterTransitionStart in case of tree-shaking
Also file is called main.js not instrumentation-client.ts (js) - why?
Should it be like this? Not clear
import { captureRouterTransitionStart } from "@sentry/nextjs";
// ...
export const onRouterTransitionStart = captureRouterTransitionStart;
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
What exactly is the problem? If you do not use this function it should not be included anyhow, no need to manually tree-shake anything?
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment