Skip to content

Commit

Permalink
change config
Browse files Browse the repository at this point in the history
  • Loading branch information
nikos-koukis committed Oct 4, 2023
1 parent 1528c15 commit 8d1d0e0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
18 changes: 13 additions & 5 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
}
const withTM = require('next-transpile-modules')(['@multiversx/sdk-dapp']);

module.exports = nextConfig
module.exports = withTM({
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
fs: false,
module: false,
};
}

return config;
},
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"fs": "^0.0.1-security",
"next": "13.5.4",
"next-auth": "^4.23.2",
"next-transpile-modules": "^10.0.1",
"react": "^18",
"react-dom": "^18"
},
Expand Down

0 comments on commit 8d1d0e0

Please sign in to comment.