-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathnext.config.js
More file actions
61 lines (58 loc) · 1.48 KB
/
next.config.js
File metadata and controls
61 lines (58 loc) · 1.48 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
const { withPlausibleProxy } = require('next-plausible');
/** @type {import('next').NextConfig} */
const moduleExports = withPlausibleProxy()({
swcMinify: true,
reactStrictMode: true,
experimental: {
legacyBrowsers: false
},
webpack: (config, { isServer }) => {
if (!isServer) {
// don't resolve 'fs' module on the client to prevent this error on build --> Error: Can't resolve 'fs'
config.resolve.fallback = {
fs: false,
child_process: false
};
}
return config;
},
images: {
domains: [
'rotatingcanvas.com',
'arweave.net',
'nick.af',
'hashnode.com',
'cdn.hashnode.com',
'abs.twimg.com',
'pbs.twimg.com',
'cardea.imgix.net',
'i.ytimg.com',
'images.unsplash.com',
'solana.com',
'static-cdn.jtvnw.net',
'clips-media-assets2.twitch.tv',
'www.youtube.com',
'pbs.twimg.com',
'opengraph.githubassets.com',
'res.cloudinary.com',
'repository-images.githubusercontent.com',
'figment.io',
'lorisleiva.com',
'www.notion.so',
'dev.to',
'twitter.com',
'alexgr.in',
'avatars.githubusercontent.com',
'solanacookbook.com',
'solana.ghost.io',
'www.gravatar.com',
'api.typedream.com',
'blog.neodyme.io',
'lh4.googleusercontent.com',
'www.jpmti2016.com',
'www.crossmint.io'
],
formats: ['image/avif', 'image/webp']
}
});
module.exports = moduleExports;