on e8ee718 help sign in
urbit.org/next.config.js
26 lines 580 B history raw
1module.exports = {
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 };
9 }
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};
20// const withMDX = require('@next/mdx')({
21// extension: /\.mdx$/
22// })
24// module.exports = withMDX({
25// pageExtensions: ['js', 'jsx', 'md', 'mdx']
26// })