@@ -37,6 +37,8 @@ let nextConfig: NextConfig = {
37
37
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
38
38
basePath : process . env . NEXT_PUBLIC_BASE_PATH || undefined ,
39
39
transpilePackages : MONOREPO_MODE ? [ "@squonk/mui-theme" , "@squonk/sdf-parser" ] : [ ] ,
40
+ // Enable production source maps for Sentry error reporting
41
+ productionBrowserSourceMaps : true ,
40
42
// Allow mdx content and mdx files as pages
41
43
webpack ( config , options ) {
42
44
if ( options . isServer ) {
@@ -55,22 +57,17 @@ let nextConfig: NextConfig = {
55
57
56
58
nextConfig = withMDX ( nextConfig ) ;
57
59
nextConfig = withRoutes ( nextConfig ) ;
58
- nextConfig = withSentryConfig (
59
- nextConfig ,
60
- {
61
- // Suppresses source map uploading logs during build
62
- silent : true ,
63
- org : "informatics-matters" ,
64
- project : "data-manager-ui" ,
60
+ nextConfig = withSentryConfig ( nextConfig , {
61
+ // Suppresses source map uploading logs during build
62
+ silent : true ,
63
+ org : "informatics-matters" ,
64
+ project : "data-manager-ui" ,
65
65
66
- // Automatically delete source maps after uploading them to Sentry
67
- sourcemaps : {
68
- deleteSourcemapsAfterUpload : true ,
69
- } ,
66
+ // Automatically delete source maps after uploading them to Sentry
67
+ sourcemaps : { deleteSourcemapsAfterUpload : true } ,
70
68
71
- // Hides source maps from generated client bundles
72
- hideSourceMaps : true ,
73
- } ,
74
- ) ;
69
+ // Hides source maps from generated client bundles
70
+ hideSourceMaps : true ,
71
+ } ) ;
75
72
76
73
export default nextConfig ;
0 commit comments