-
Notifications
You must be signed in to change notification settings - Fork 21
/
next.config.js
36 lines (33 loc) · 960 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
const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{
protocol: "https",
hostname: "world-id-public.s3.amazonaws.com",
port: "",
pathname: "**",
},
{
protocol: "https",
hostname: "world-id-assets.com",
port: "",
pathname: "**",
},
],
},
webpack: (config) => {
config.resolve.fallback = {
...config.resolve.fallback,
// NOTE: https://github.com/wagmi-dev/create-wagmi/blob/main/templates/next/connectkit/next.config.js
fs: false,
net: false, // NOTE: Fallback for legacy WalletConnect v1 (loaded through wagmi)
tls: false, // NOTE: Fallback for legacy WalletConnect v1 (loaded through wagmi)
};
return config;
},
};
module.exports = withBundleAnalyzer(nextConfig);