XeNote/next.config.js
2022-03-23 10:50:06 +07:00

12 lines
252 B
JavaScript

module.exports = {
webpack: (config, { isServer }) => {
// Fixes npm packages that depend on `fs` module
if (!isServer) {
config.node = {
fs: 'empty'
}
}
return config
}
}