diff --git a/next.config.js b/next.config.js index 33c55f5050725e..19b335670d1eb4 100644 --- a/next.config.js +++ b/next.config.js @@ -31,7 +31,7 @@ module.exports = { return Object.assign({}, config, { plugins, - externals: Object.assign({}, { + externals: Object.assign({}, config.externals, { fs: 'fs', }), module: Object.assign({}, config.module, {