-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnext.config.js
39 lines (36 loc) · 972 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
39
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
webpack: (config, options) => {
config.experiments = {...config.experiments, topLevelAwait: true };
config.resolve.alias = {...config.resolve.alias, ...{
bufferutil: false,
child_process: false,
crypto: false,
dns: false,
events: require.resolve("events/"),
eventsource: false,
fs: false,
http: false,
https: false,
libpq: false,
module: false,
net: false,
os: false,
"parse-database-url": false,
path: false,
pg: false,
"pg-format": false,
"pg-native": false,
solc: false,
tls: false,
url: false,
zlib: false,
}};
config.resolve.alias = {...config.resolve.alias, ...{
stream: require.resolve("stream-browserify"),
}};
return config
},
}
module.exports = nextConfig