-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnext.config.js
38 lines (37 loc) · 963 Bytes
/
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
37
38
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{ hostname: 'giveth.mypinata.cloud' },
{ hostname: 'ipfs.io' },
{ hostname: 'localhost' },
{ hostname: 'pbs.twimg.com' },
{ hostname: 'images.lumacdn.com' },
{ hostname: 'images.opencollective.com' },
{ hostname: 'avatar.vercel.sh' },
{
hostname: 'api.multiavatar.com',
},
{ hostname: 'ipfs.internal.citizenwallet.xyz' },
],
},
webpack: (config) => {
config.resolve.fallback = { fs: false, net: false, tls: false };
config.externals.push('pino-pretty', 'lokijs', 'encoding');
config.module.rules.push({
test: /\.svg$/,
use: [
{
loader: '@svgr/webpack',
options: {
svgo: false,
titleProp: true,
ref: true,
},
},
],
});
return config;
},
};
module.exports = nextConfig;