Skip to content

Commit 1e3f338

Browse files
committed
build(webpack): specify external modules (utf-8-validate, bufferutil, canvas)
1 parent 96125fa commit 1e3f338

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

next.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
3+
webpack: config => {
4+
config.externals.push({
5+
"utf-8-validate": "commonjs utf-8-validate",
6+
bufferutil: "commonjs bufferutil",
7+
canvas: "commonjs canvas",
8+
});
9+
10+
return config;
11+
},
312
images: {
413
remotePatterns: [
514
{

0 commit comments

Comments
 (0)