forked from ghoul-keeper/ghoulies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.js
30 lines (28 loc) · 885 Bytes
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* eslint-disable @typescript-eslint/no-var-requires */
const withTM = require("next-transpile-modules")([
"@solana/wallet-adapter-base",
"@solana/wallet-adapter-bitpie",
"@solana/wallet-adapter-coin98",
"@solana/wallet-adapter-ledger",
"@solana/wallet-adapter-mathwallet",
"@solana/wallet-adapter-phantom",
"@solana/wallet-adapter-react",
"@solana/wallet-adapter-solflare",
"@solana/wallet-adapter-sollet",
"@solana/wallet-adapter-solong",
"@solana/wallet-adapter-torus",
"@solana/wallet-adapter-wallets",
"@project-serum/sol-wallet-adapter",
]);
module.exports = withTM({
webpack5: true,
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback.fs = false;
config.resolve.fallback.dns = false;
config.resolve.fallback.net = false;
config.resolve.fallback.tls = false;
}
return config;
},
});