@@ -1,25 +1,26 @@
11module.exports = {
2− webpack: (config, { isServer }) => {
3− // Fixes npm packages that depend on `fs` module
4− if (!isServer) {
5− config.node = {
6− fs: 'empty'
7− }
8− }
9− config.externals = {
10− ...config.externals,
11− canvas: "util"
2+ // target: 'serverless',
3+ webpack: (config, { isServer }) => {
4+ // Fixes npm packages that depend on `fs` module
5+ if (!isServer) {
6+ config.node = {
7+ fs: "empty",
8+ };
129 }
13− return config
14− }
15−}
10+ // config.externals = {
11+ // ...config.externals,
12+ // canvas: "util",
13+ // bufferutil: "bufferutil",
14+ // "utf-8-validate": "utf-8-validate"
15+ // }
16+ return config;
17+ },
18+};
1619
1720// const withMDX = require('@next/mdx')({
1821// extension: /\.mdx$/
1922// })
20−
23+
2124// module.exports = withMDX({
2225// pageExtensions: ['js', 'jsx', 'md', 'mdx']
2326// })
24−
25−