Skip to content

Commit

Permalink
fixes: webpack vs 'cant resolve fs'
Browse files Browse the repository at this point in the history
  • Loading branch information
abendy committed Jun 26, 2020
1 parent 4bd4549 commit 603930a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions next.config.js
Expand Up @@ -8,6 +8,7 @@ module.exports = {
target: 'serverless',
webpack: (config, { dev }) => {
config.output.publicPath = `${assetPrefix}${config.output.publicPath}`
config.node = { fs: 'empty' }

return config
}
Expand Down

0 comments on commit 603930a

Please sign in to comment.