You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've removed the sentry.edge.config.ts and sentry.server.config.ts and I still get sourcemaps for both of them. I only want client sourcemaps.
I don't think this is possible right now without some very ugly hacks. We should provide some way of setting different options for the different runtimes.
Idea No.1 and probably my favorite: Allow for the sentryBuildOptions argument in withSentryConfig to be a function/callback that receives the runtime as an argument. (probably should pass it within an object so that we can extend it in the future)
The text was updated successfully, but these errors were encountered:
lforst
changed the title
[Next.js] Support setting different webpack plugin options for different runtimes (browser/server/edge)
[Next.js] Support setting different options for different runtimes (browser/server/edge)
Oct 1, 2024
Uh oh!
There was an error while loading. Please reload this page.
Originally posted by @ricardomatias in discussions:
I don't think this is possible right now without some very ugly hacks. We should provide some way of setting different options for the different runtimes.
Idea No.1 and probably my favorite: Allow for the
sentryBuildOptions
argument inwithSentryConfig
to be a function/callback that receives the runtime as an argument. (probably should pass it within an object so that we can extend it in the future)The text was updated successfully, but these errors were encountered: