File tree Expand file tree Collapse file tree 1 file changed +21
-15
lines changed Expand file tree Collapse file tree 1 file changed +21
-15
lines changed Original file line number Diff line number Diff line change @@ -29,21 +29,27 @@ const config = {
2929 } ,
3030} ;
3131
32- const bundleAnalyzerConfig = withBundleAnalyzer ( config ) ;
32+ const configExport = ( ) => {
33+ if ( process . env . ANALYZE === "true" ) return withBundleAnalyzer ( config ) ;
3334
34- const sentryConfig = withSentryConfig (
35- config ,
36- {
37- silent : true ,
38- org : "aykut-sarac" ,
39- project : "json-crack" ,
40- } ,
41- {
42- widenClientFileUpload : true ,
43- hideSourceMaps : true ,
44- disableLogger : true ,
45- disableServerWebpackPlugin : true ,
35+ if ( process . env . GITHUB_REPOSITORY === "AykutSarac/jsoncrack.com" ) {
36+ return withSentryConfig (
37+ config ,
38+ {
39+ silent : true ,
40+ org : "aykut-sarac" ,
41+ project : "json-crack" ,
42+ } ,
43+ {
44+ widenClientFileUpload : true ,
45+ hideSourceMaps : true ,
46+ disableLogger : true ,
47+ disableServerWebpackPlugin : true ,
48+ }
49+ ) ;
4650 }
47- ) ;
4851
49- module . exports = process . env . ANALYZE === "true" ? bundleAnalyzerConfig : sentryConfig ;
52+ return config ;
53+ } ;
54+
55+ module . exports = configExport ( ) ;
You can’t perform that action at this time.
0 commit comments