Skip to content

Commit

Permalink
fix: trying to fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
AniketSindhu committed Feb 5, 2024
1 parent 302a1e6 commit 9ea1d83
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 20 deletions.
30 changes: 10 additions & 20 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
const webpack = require("webpack");

module.exports = function override(config) {
const fallback = config.resolve.fallback || {};
Object.assign(fallback, {
crypto: require.resolve("crypto-browserify"),
stream: require.resolve("stream-browserify"),
assert: require.resolve("assert"),
module.exports = function override(config, env) {
console.log("override...");
let loaders = config.resolve;
loaders.fallback = {
fs: false,
http: require.resolve("stream-http"),
https: require.resolve("https-browserify"),
os: require.resolve("os-browserify"),
url: require.resolve("url"),
zlib: require.resolve("browserify-zlib")
});
config.resolve.fallback = fallback;
config.plugins = (config.plugins || []).concat([
new webpack.ProvidePlugin({
process: "process/browser",
Buffer: ["buffer", "Buffer"]
})
]);
zlib: require.resolve("browserify-zlib"),
path: require.resolve("path-browserify"),
crypto: require.resolve("crypto-browserify")
};

return config;
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"ethers": "^6.9.0",
"graphql": "^16.8.1",
"net": "^1.0.2",
"path-browserify": "^1.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hot-toast": "^2.4.1",
Expand Down

0 comments on commit 9ea1d83

Please sign in to comment.