-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
36 lines (32 loc) · 1.38 KB
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true'
});
module.exports = withBundleAnalyzer({
images: {
domains: ['raw.githubusercontent.com']
},
eslint: {
ignoreDuringBuilds: true
}
// https://nextjs.org/docs/advanced-features/source-maps
// The below code is needed to generate source-map visualizations
// productionBrowserSourceMaps: true
// https://nextjs.org/docs/api-reference/next.config.js/custom-webpack-config
// webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
// // Note: we provide webpack above so you should not `require` it
// // Perform customizations to webpack config
// // console.log(JSON.stringify(config.module.rules, null, 2));
// //https://webpack.js.org/configuration/devtool/#devtool
// config.devtool = 'source-map';
// // For debugging
// config.mode = 'development';
// // For easier debugging to know what is contained in chunks
// config.optimization.minimize = false;
// // This would function would be called twice - one for server and other for client
// if (config.name === 'client') {
// console.log(JSON.stringify(config, null, 2));
// }
// // Important: return the modified config
// return config;
// }
});