-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnext.config.js
More file actions
29 lines (28 loc) · 755 Bytes
/
Copy pathnext.config.js
File metadata and controls
29 lines (28 loc) · 755 Bytes
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
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
images: {
domains: ['cdn.discordapp.com'],
},
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.alias = {
...config.resolve.alias,
'discord.js': false,
'@discordjs/ws': false,
'@discordjs/rest': false,
'@discordjs/voice': false,
}
config.resolve.fallback = {
...config.resolve.fallback,
'zlib-sync': false,
'bufferutil': false,
'utf-8-validate': false,
'erlpack': false,
}
}
config.externals = [...(config.externals || []), 'zlib-sync', 'bufferutil', 'utf-8-validate']
return config
},
}
module.exports = nextConfig