File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -61,14 +61,22 @@ const withBundleAnalyser = bundleAnalyze({
61
61
nextConfig = withBundleAnalyser ( nextConfig ) ;
62
62
nextConfig = withMDX ( nextConfig ) ;
63
63
nextConfig = withRoutes ( nextConfig ) ;
64
- nextConfig = withSentryConfig ( nextConfig , {
65
- // For all available options, see:
66
- // https://github.com/getsentry/sentry-webpack-plugin#options
64
+ nextConfig = withSentryConfig (
65
+ nextConfig ,
66
+ {
67
+ // Suppresses source map uploading logs during build
68
+ silent : true ,
69
+ org : "informatics-matters" ,
70
+ project : "data-manager-ui" ,
67
71
68
- // Suppresses source map uploading logs during build
69
- silent : true ,
70
- org : "informatics-matters" ,
71
- project : "data-manager-ui" ,
72
- } ) ;
72
+ // Automatically delete source maps after uploading them to Sentry
73
+ sourcemaps : {
74
+ deleteSourcemapsAfterUpload : true ,
75
+ } ,
76
+
77
+ // Hides source maps from generated client bundles
78
+ hideSourceMaps : true ,
79
+ } ,
80
+ ) ;
73
81
74
82
export default nextConfig ;
You can’t perform that action at this time.
0 commit comments