XeNote/next.config.js

12 lines
252 B
JavaScript
Raw Normal View History

2022-03-23 03:50:06 +00:00
module.exports = {
webpack: (config, { isServer }) => {
// Fixes npm packages that depend on `fs` module
if (!isServer) {
config.node = {
fs: 'empty'
}
}
return config
}
}