forked from resource-watch/resource-watch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
36 lines (31 loc) · 1.02 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 withSass = require('@zeit/next-sass');
const withCSS = require('@zeit/next-css');
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
module.exports = withBundleAnalyzer(withCSS(withSass({
poweredByHeader: false,
// exportPathMap: async (defaultPathMap) => ({
// ...defaultPathMap,
// '/': { page: '/home' },
// '/about/contact-us': { page: '/contact-us' },
// '/about/faqs': { page: '/faqs' },
// '/about/howto': { page: 'how-to' },
// '/about/partners': { page: '/partners' },
// '/privacy-policy': { page: '/policy' },
// '/api-attribution-requirements': { page: 'attribution-requirements' },
// '/data/explore': { page: '/explore' },
// '/data/pulse': { page: '/pulse' },
// }),
webpack: (config) => {
// eslint-disable-next-line no-underscore-dangle
const _config = { ...config };
_config.node = {
console: true,
fs: 'empty',
net: 'empty',
tls: 'empty',
};
return _config;
},
})));