Way to disable source-maps in production. #4898
Unanswered
smitpatel1010
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to disable sourceMaps generation because of slowest webpack build time.
Is there any better way to disable source-maps with
withSentryConfig
in@sentry/nextjs
.withSentryConfig
overrides webpack config passed from next.config.jsI had to disable it after
withSentryConfig
and had to handle nextConfig as a function.Beta Was this translation helpful? Give feedback.
All reactions